Updates, and takeovers

This commit is contained in:
Anthony Recascino
2016-08-04 01:21:22 -04:00
parent e3068026a4
commit d3ac13793f
2 changed files with 91 additions and 1 deletions

View File

@ -115,6 +115,13 @@ function factionsmod_chat.cmdhandler(playername,parameter)
end
return
end
if cmd == "takeover" then
local playerfaction = factionsmod.get_factionsmod(player)
if next(playerfaction) ~= nil then
factionsmod.takeover(playerfaction[1],player)
end
return
end
--list all known factionsmod
if cmd == "list" then
local list = factionsmod.get_faction_list()