Fix: chat cmd typo
This commit is contained in:
parent
cc50d94817
commit
fd6bf07064
|
@ -626,15 +626,15 @@ if factions_config.faction_diplomacy == true then
|
|||
end
|
||||
},false)
|
||||
|
||||
factions.register_command("delcare_war", {
|
||||
description = "Delcare war on a faction.",
|
||||
factions.register_command("declare_war", {
|
||||
description = "Declare war on a faction.",
|
||||
global_privileges = def_global_privileges,
|
||||
format = {"string"},
|
||||
faction_permissions = {"diplomacy"},
|
||||
on_success = function(player, faction, pos, parcelpos, args)
|
||||
if not faction.enemies[args.strings[1]] then
|
||||
if args.strings[1] == faction.name then
|
||||
send_error(player, "You can not delcare war on your own faction.")
|
||||
send_error(player, "You can not declare war on your own faction.")
|
||||
return false
|
||||
end
|
||||
if faction.allies[args.strings[1]] then
|
||||
|
|
Loading…
Reference in New Issue
Block a user