mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
No rank change on auto rank to guest
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user