add feedback for /f promote

This commit is contained in:
Elkien3 2018-04-17 18:19:19 -05:00
parent 2f0dde7ffd
commit 1213d13a05

View File

@ -559,6 +559,7 @@ factions.register_command("promote", {
local rank = args.strings[1]
if faction.ranks[rank] then
faction:promote(args.players[1], rank)
minetest.chat_send_player(player, "Promoted "..args.players[1] .. " to " .. rank .. "!")
return true
else
send_error(player, "The specified rank does not exist.")