mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-22 15:23:47 +01:00
another facepalm moment
This commit is contained in:
parent
119861b926
commit
607c6f8d1f
3
init.lua
3
init.lua
@ -229,7 +229,8 @@ local function handle_command(name, param)
|
|||||||
"You are the owner of multiple factions, you have to choose one of them: @1.",
|
"You are the owner of multiple factions, you have to choose one of them: @1.",
|
||||||
table.concat(own_factions, ", ")
|
table.concat(own_factions, ", ")
|
||||||
)
|
)
|
||||||
elseif not facts[faction_name] then
|
end
|
||||||
|
if not facts[faction_name] then
|
||||||
return false, S("Faction @1 doesn't exist.", faction_name)
|
return false, S("Faction @1 doesn't exist.", faction_name)
|
||||||
elseif not_admin and name ~= factions.get_owner(faction_name) then
|
elseif not_admin and name ~= factions.get_owner(faction_name) then
|
||||||
return false, S("Permission denied: You are not the owner of that faction,"
|
return false, S("Permission denied: You are not the owner of that faction,"
|
||||||
|
Loading…
Reference in New Issue
Block a user