Fixed /f promote

This commit is contained in:
shamoanjac 2016-08-15 16:39:19 +02:00
parent 7137f09b4c
commit f44b059afc

View File

@ -476,7 +476,7 @@ factions.register_command("promote", {
on_success = function(player, faction, pos, parcelpos, args)
local rank = args.strings[1]
if faction.ranks[rank] then
faction:promote(args.players[1], rank)
faction:promote(args.players[1]:get_player_name(), rank)
return true
else
send_error(player, "The specified rank does not exist.")