From cada119a137762585a2df3b7248ce64a72cea6c8 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sat, 22 Jul 2017 22:59:52 +0100 Subject: [PATCH] Fixed Auto rank again --- locale/ExpGaming-Core/ExpGaming - Rank Control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Rank Control.lua b/locale/ExpGaming-Core/ExpGaming - Rank Control.lua index fe1b517c..8ac5e976 100644 --- a/locale/ExpGaming-Core/ExpGaming - Rank Control.lua +++ b/locale/ExpGaming-Core/ExpGaming - Rank Control.lua @@ -113,7 +113,7 @@ function find_new_rank(player) 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')}) else - give_rank(player,highest_rank) + if highest_rank ~= current_rank then give_rank(player,highest_rank) end end end --lose ends