Fixed rank message

This commit is contained in:
Cooldude2606
2017-10-23 21:04:17 +01:00
parent 5fdfcc40a1
commit 72699108be
2 changed files with 2 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ function ranking.rank_print(msg, rank, inv)
else
server.queue_callback(function(player_rank_power,rank)
if player_rank_power <= rank.power then
if rank.short_hand ~= '' then player.print(('['..(rank.short_hand)..']: '..msg)) else player.print({'ranking.all-rank-print',msg}) end
if rank.short_hand ~= '' then player.print{'ranking.rank-print',rank.short_hand,msg} else player.print{'ranking.all-rank-print',msg} end
end
end,{player_rank_power,rank})
end

View File

@@ -1,5 +1,6 @@
[ranking]
all-rank-print=[Everyone]: __1__
rank-print=[__1__]: __2__
rank-up=__1__ was promoted to __2__ by __3__
rank-down=__1__ was demoted to __2__ by __3__
rank-given=You have been given the __1__ Rank!