Fxied guest remaining after tag clear

This commit is contained in:
Cooldude2606
2017-09-27 19:40:02 +01:00
parent 2c38609ddb
commit 910c8b192e
2 changed files with 2 additions and 1 deletions

View File

@@ -155,6 +155,7 @@ function find_new_rank(player)
if highest_rank.name == string_to_rank_group('User').lowest_rank.name then
-- to avoid spam in chat
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, {player=player, by_player='server', new_rank=string_to_rank_group('User').lowest_rank, old_rank=string_to_rank_group('User').lowest_rank})
else

View File

@@ -189,7 +189,7 @@ local ranks = {
{name='Guest',
short_hand='',
tag='[Guest]',
tag='',
time=nil,
colour={r=255,g=159,b=27},
group='User',