Fixed /f promote
This commit is contained in:
parent
7137f09b4c
commit
f44b059afc
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue
Block a user