Fixed syntax errors
This commit is contained in:
parent
97a3bab635
commit
e82a02e3c9
|
@ -189,7 +189,7 @@ function factions_chat.cmdhandler(playername,parameter)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--end
|
--end
|
||||||
if cmd == "
|
|
||||||
if cmd == "join" then
|
if cmd == "join" then
|
||||||
if params[2] ~= nil then
|
if params[2] ~= nil then
|
||||||
--check for invitation
|
--check for invitation
|
||||||
|
|
|
@ -263,7 +263,7 @@ function factions.member_add(name, object)
|
||||||
factions.data.objects[new_entry.name].factions[name] = true
|
factions.data.objects[new_entry.name].factions[name] = true
|
||||||
factions.dynamic_data.membertable[name][new_entry.name] = true
|
factions.dynamic_data.membertable[name][new_entry.name] = true
|
||||||
factions.data.factions[name].invitations[new_entry.name] = nil
|
factions.data.factions[name].invitations[new_entry.name] = nil
|
||||||
if factions.data.factions[name].owner == ""
|
if factions.data.factions[name].owner == "" then
|
||||||
factions.data.factions[name].owner = object.get_player_name()
|
factions.data.factions[name].owner = object.get_player_name()
|
||||||
factions.set_admin(name,object.get_player_name(), true)
|
factions.set_admin(name,object.get_player_name(), true)
|
||||||
end
|
end
|
||||||
|
@ -334,7 +334,7 @@ function factions.member_remove(name,object)
|
||||||
factions.save()
|
factions.save()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
if factions.data.objects[id].factions[name].owner == object.get_player_name()
|
if factions.data.objects[id].factions[name].owner == object.get_player_name() then
|
||||||
factions.delete_faction(name)
|
factions.delete_faction(name)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user