No rank change on auto rank to guest

This commit is contained in:
Cooldude2606
2017-10-21 20:22:05 +01:00
parent e29cb2cdf2
commit 71ddd59e02

View File

@@ -150,7 +150,6 @@ function ranking.find_new_rank(player,tick)
debug_write({'RANK','NEW-RANK','GIVE','VIA-SERVER'},player.name..' '..highest_rank.name)
player.tag = highest_rank.tag
player.permission_group=game.permissions.get_group('Guest')
script.raise_event(Event.rank_change, {tick=tick, player=player, by_player='server', new_rank=ranking.string_to_rank_group('User').lowest_rank, old_rank=ranking.string_to_rank_group('User').lowest_rank})
else
debug_write({'RANK','NEW-RANK','GIVE','VIA-GIVE-RANK'},player.name..' '..highest_rank.name)
if highest_rank ~= current_rank then ranking.give_rank(player,highest_rank,nil,tick) end