forked from mtcontrib/factions
Try on claiming
This commit is contained in:
@ -102,11 +102,13 @@ function factionsmod_chat.cmdhandler(playername,parameter)
|
||||
end
|
||||
|
||||
if cmd == "claim" then
|
||||
local playerfactionsmod = factionsmod.get_factionsmod(player)
|
||||
|
||||
local playerfaction = factionsmod.get_factionsmod(player)
|
||||
factionsmod.claim(playerfaction[1],player)
|
||||
return
|
||||
end
|
||||
if cmd == "unclaim" then
|
||||
local playerfaction = factionsmod.get_factionsmod(player)
|
||||
factionsmod.unclaim(playerfaction[1],player)
|
||||
return
|
||||
end
|
||||
--list all known factionsmod
|
||||
@ -454,4 +456,4 @@ function factionsmod_chat.show_help(playername)
|
||||
MSG("\t\t/factionsmod set_free <factionname> <value> -> set faction free to join")
|
||||
MSG("\t\t/factionsmod admin <factionname> <playername> <value> -> make player admin of faction")
|
||||
MSG("\t\t/factionsmod description <factionname> <text> -> set description for faction")
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user