From aa59ed86488422ef5a74288c5d1766f1c9ae351e Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Mon, 21 Aug 2017 11:17:50 +0100 Subject: [PATCH] system sever diffrent ?!? removed all system --- locale/ExpGaming-Core/ExpGaming - Rank Control.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Rank Control.lua b/locale/ExpGaming-Core/ExpGaming - Rank Control.lua index 917fc05a..7b252c24 100644 --- a/locale/ExpGaming-Core/ExpGaming - Rank Control.lua +++ b/locale/ExpGaming-Core/ExpGaming - Rank Control.lua @@ -57,7 +57,7 @@ function rank_print(msg, rank, inv) end --Give the user their new rank and raise the Event.rank_change event function give_rank(player,rank,by_player) - local by_player = by_player or 'system' + local by_player = by_player or 'server' local rank = string_to_rank(rank) or rank or string_to_rank('Guest') local old_rank = get_rank(player) --messaging @@ -66,7 +66,7 @@ function give_rank(player,rank,by_player) if by_player.name then rank_print(player.name..' was '..message..' to '..rank.name..' by '..by_player.name,'Guest') else - rank_print(player.name..' was '..message..' to '..rank.name..' by ','Guest') + rank_print(player.name..' was '..message..' to '..rank.name..' by ','Guest') end if rank.name ~= 'Guest' then player.print('You have been given the '..rank.name..' Rank!') end if player.tag ~= old_rank.tag and player.tag ~= '' then player.print('Your Tag was reset due to a Rank change') end @@ -111,7 +111,7 @@ function find_new_rank(player) --Give player new rank if availble if highest_rank.name == 'Guest' then 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='server', new_rank=string_to_rank('Guest'), old_rank=string_to_rank('Guest')}) else if highest_rank ~= current_rank then give_rank(player,highest_rank) end end