Fixed Auto rank again

This commit is contained in:
Cooldude2606
2017-07-22 22:59:52 +01:00
parent 9411cf2bdf
commit cada119a13

View File

@@ -113,7 +113,7 @@ function find_new_rank(player)
player.permission_group=game.permissions.get_group('Guest') player.permission_group=game.permissions.get_group('Guest')
script.raise_event(Event.rank_change, {player=player, by_player='system', new_rank=string_to_rank('Guest'), old_rank=string_to_rank('Guest')}) script.raise_event(Event.rank_change, {player=player, by_player='system', new_rank=string_to_rank('Guest'), old_rank=string_to_rank('Guest')})
else else
give_rank(player,highest_rank) if highest_rank ~= current_rank then give_rank(player,highest_rank) end
end end
end end
--lose ends --lose ends