diff options
author | Dico200 <dico.karssiens@gmail.com> | 2015-11-01 22:03:21 +0100 |
---|---|---|
committer | Dico200 <dico.karssiens@gmail.com> | 2015-11-01 22:03:21 +0100 |
commit | eb201196e16659730c36f5742bab19e34261282a (patch) | |
tree | 07209ddd9b4ac9fc69e569261d81dcdc7c4468fc | |
parent | 1f1c090651e365c41865b20529717ae884f68c4e (diff) |
Small change <3
-rw-r--r-- | synchronizeranks.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synchronizeranks.py b/synchronizeranks.py index 56cc20b..8d0db60 100644 --- a/synchronizeranks.py +++ b/synchronizeranks.py @@ -21,13 +21,12 @@ def on_player_join(event): role = get_role(uuid) if role in [1, 2, 6]: #Disabled/Banned/Superadmin return - if role: + if role != None: for rank in ranks: if user.hasPermission("group." + rank): if role != ranks[rank]: set_role(uuid, ranks[rank]) - return - if user.hasPlayedBefore() and role == None: + elif user.hasPlayedBefore(): msg(user, "&cYou haven't registed yet! Make sure to do so on redstoner.com") |