Update to /tag-clear

This commit is contained in:
Cooldude2606
2018-09-23 20:58:39 +01:00
parent 7cae13b800
commit f6e5ea08be

View File

@@ -32,10 +32,10 @@ end)
--- Gives you a tag
-- @command tag
-- @param tag the tag you want to have
commands.add_command('tag-clear', 'Removes a custom tag. Player can be self (/tag-clear self)', {
['player'] = {true,'player-rank'}
commands.add_command('tag-clear', 'Removes a custom tag.', {
['player'] = {false,'player-rank'}
}, function(event,args)
local player = args.player
local player = args.player or game.player
if Ranking then
local rank = Ranking.get_rank(player)
player.tag = rank.tag