Added /f stats

This commit is contained in:
shamoanjac 2016-08-28 12:03:12 +02:00
parent 71d95c3ad8
commit 79e270c38d

View File

@ -659,6 +659,18 @@ factions.register_command("whoin", {
end
})
factions.register_command("stats", {
description = "Get stats of a faction.",
infaction = false,
global_privileges = {"faction_admin"},
format = {"faction"},
on_success = function(player, faction, pos, parcelpos, args)
local f = args.factions[1]
minetest.chat_send_player(player, "Power: "..f.power.."/"..f.maxpower - f.usedpower.."/"..f.maxpower)
return true
end
})
-------------------------------------------------------------------------------
-- name: cmdhandler(playername,parameter)
--