diff --git a/init.lua b/init.lua index 92b7cdf..c991198 100644 --- a/init.lua +++ b/init.lua @@ -243,8 +243,8 @@ local function handle_command(name, param) table.concat(own_factions, ", ") ) elseif not facts[faction_name] then - return false, S("This faction doesn't exists.") elseif name ~= factions.get_owner(faction_name) and not minetest.get_player_privs(name)[factions.priv] then + return false, S("This faction doesn't exist.") return false, S("Permission denied: You are not the owner of this faction, " .. "and don't have the @1 privilege.", factions.priv) elseif not factions.valid_password(faction_name, password) then @@ -279,7 +279,7 @@ local function handle_command(name, param) end end if facts[faction_name] == nil then - return false, S("This faction doesn't exists.") + return false, S("This faction doesn't exist.") else local fmembers = "" if table.getn(facts[faction_name].members) > factions.max_members_list then @@ -303,7 +303,7 @@ local function handle_command(name, param) end local player_factions = factions.get_player_factions(player_name) if not player_factions then - return false, S("This player doesn't exists or is in no faction") + return false, S("This player doesn't exist or is in no faction") else local str_owner = "" local str_member = "" @@ -373,7 +373,7 @@ local function handle_command(name, param) faction_name = params[2] end if faction_name == nil then - return false, S("The given faction doesn't exists.") + return false, S("The given faction doesn't exist.") elseif factions.get_owner(faction_name) == name then return false, S("You cannot leave your own faction, change owner or disband it.") else diff --git a/locale/playerfactions.fr.tr b/locale/playerfactions.fr.tr index 3aeb69d..2615ca1 100644 --- a/locale/playerfactions.fr.tr +++ b/locale/playerfactions.fr.tr @@ -51,13 +51,13 @@ The faction @1 doesn't exist.=La faction @1 n’existe pas. The faction has more than @1 members, the members list can't be shown.=Cette faction a plus que @1 membres, la liste des membres ne peut pas être affichée. -The given faction doesn't exists.=La faction en question n’existe pas. +The given faction doesn't exist.=La faction en question n’existe pas. The player doesn't exist.=Le joueur n’existe pas. The player is already in the faction "@1".=Le joueur est déjà dans la faction "@1". There are no factions yet.=Il n’y a pas encore de factions. -This faction doesn't exists.=Cette faction n’existe pas. +This faction doesn't exist.=Cette faction n’existe pas. The player name is nil or empty.=Le nom du joueur est nul ou vide. -This player doesn't exists or is in no faction=Ce joueur n’existe pas ou n’est dans aucune faction. +This player doesn't exist or is in no faction=Ce joueur n’existe pas ou n’est dans aucune faction. This player is not in the specified faction.=Le joueur n’est pas dans la faction spécifiée. This player doesn't own any factions.=Ce joueur n’est propriétaire d’aucune faction. This player is the owner of the following factions: @1.=Ce joueur n’est le propriétaire d’aucune des factions suivantes : @1. diff --git a/locale/template.txt b/locale/template.txt index 41e6e28..fb2458a 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -51,13 +51,13 @@ The faction @1 doesn't exist.= The faction has more than @1 members, the members list can't be shown.= -The given faction doesn't exists.= +The given faction doesn't exist.= The player doesn't exist.= The player is already in the faction "@1".= There are no factions yet.= -This faction doesn't exists.= +This faction doesn't exist.= The player name is nil or empty.= -This player doesn't exists or is in no faction= +This player doesn't exist or is in no faction= This player is not in the specified faction.= This player doesn't own any factions.= This player is the owner of the following factions: @1.=