forked from mtcontrib/factions
Added /f resetpower
This commit is contained in:
parent
da37376d20
commit
ce8fec854f
@ -603,6 +603,17 @@ factions.register_command("setadmin", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
factions.register_commad("resetpower", {
|
||||||
|
description = "Reset a faction's power",
|
||||||
|
infaction = false,
|
||||||
|
global_privileges = {"faction_admin"},
|
||||||
|
format = {"faction"},
|
||||||
|
on_success = function(player, faction, pos, parcelpos, args)
|
||||||
|
args.factionsp[1].power = 0
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
-- name: cmdhandler(playername,parameter)
|
-- name: cmdhandler(playername,parameter)
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user