mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-22 07:13:50 +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
|
||||
return false
|
||||
end
|
||||
if facts[faction_name] then
|
||||
return false
|
||||
end
|
||||
facts[faction_name] = {
|
||||
name = faction_name,
|
||||
owner = player_name,
|
||||
|
Loading…
Reference in New Issue
Block a user