forked from mtcontrib/factions
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)
|
on_success = function(player, faction, pos, parcelpos, args)
|
||||||
local rank = args.strings[1]
|
local rank = args.strings[1]
|
||||||
if faction.ranks[rank] then
|
if faction.ranks[rank] then
|
||||||
faction:promote(args.players[1], rank)
|
faction:promote(args.players[1]:get_player_name(), rank)
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
send_error(player, "The specified rank does not exist.")
|
send_error(player, "The specified rank does not exist.")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user