mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-29 10:43:50 +01:00
simpler check
This commit is contained in:
parent
bfc9f8fead
commit
b9ddace0dc
2
init.lua
2
init.lua
@ -511,7 +511,7 @@ function cc.invite(_, params, not_admin)
|
|||||||
return false, S("Player @1 doesn't exist.", target_name)
|
return false, S("Player @1 doesn't exist.", target_name)
|
||||||
end
|
end
|
||||||
local player_factions = factions.get_player_factions(target_name)
|
local player_factions = factions.get_player_factions(target_name)
|
||||||
if player_factions and facts[faction_name].members[target_name] then
|
if facts[faction_name].members[target_name] then
|
||||||
return false, S("Player @1 is already in faction @2.",
|
return false, S("Player @1 is already in faction @2.",
|
||||||
target_name, faction_name)
|
target_name, faction_name)
|
||||||
elseif player_factions and factions.mode_unique_faction then
|
elseif player_factions and factions.mode_unique_faction then
|
||||||
|
Loading…
Reference in New Issue
Block a user