mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-26 09:13:44 +01:00
fail to register same named factions
This commit is contained in:
parent
393b4faacb
commit
d333c8fa71
3
init.lua
3
init.lua
@ -131,6 +131,9 @@ function factions.register_faction(faction_name, player_name, password)
|
|||||||
and 'string' == type(password)) then
|
and 'string' == type(password)) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
if facts[faction_name] then
|
||||||
|
return false
|
||||||
|
end
|
||||||
facts[faction_name] = {
|
facts[faction_name] = {
|
||||||
name = faction_name,
|
name = faction_name,
|
||||||
owner = player_name,
|
owner = player_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user