Archived
Small change <3
This commit is contained in:
+2
-3
@@ -21,13 +21,12 @@ def on_player_join(event):
|
|||||||
role = get_role(uuid)
|
role = get_role(uuid)
|
||||||
if role in [1, 2, 6]: #Disabled/Banned/Superadmin
|
if role in [1, 2, 6]: #Disabled/Banned/Superadmin
|
||||||
return
|
return
|
||||||
if role:
|
if role != None:
|
||||||
for rank in ranks:
|
for rank in ranks:
|
||||||
if user.hasPermission("group." + rank):
|
if user.hasPermission("group." + rank):
|
||||||
if role != ranks[rank]:
|
if role != ranks[rank]:
|
||||||
set_role(uuid, ranks[rank])
|
set_role(uuid, ranks[rank])
|
||||||
return
|
elif user.hasPlayedBefore():
|
||||||
if user.hasPlayedBefore() and role == None:
|
|
||||||
msg(user, "&cYou haven't registed yet! Make sure to do so on redstoner.com")
|
msg(user, "&cYou haven't registed yet! Make sure to do so on redstoner.com")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user