forked from mtcontrib/factions
Fixes
This commit is contained in:
parent
670787bee0
commit
fc2b27abf1
@ -168,7 +168,6 @@ function factions_chat.cmdhandler(playername,parameter)
|
||||
--if minetest.check_player_privs(playername,{ faction_admin=true }) then
|
||||
--create new faction
|
||||
if cmd == "create" then
|
||||
minetest.chat_send_player(playername,"dfdsofjdspofndsfjdsp",false)
|
||||
if params[2] ~= nil then
|
||||
if factions.add_faction(params[2]) then
|
||||
minetest.chat_send_player(playername,
|
||||
|
@ -324,7 +324,7 @@ function factions.member_remove(name,object)
|
||||
factions.data.objects[id].factions[name] ~= nil then
|
||||
factions.data.objects[id].factions[name] = nil
|
||||
factions.dynamic_data.membertable[name][id] = nil
|
||||
if factions.data.objects[id].factions[name].owner == object:get_player_name() then
|
||||
if factions.data.factions[name].owner == object:get_player_name() then
|
||||
factions.delete_faction(name)
|
||||
end
|
||||
factions.save()
|
||||
|
Loading…
Reference in New Issue
Block a user