forked from mtcontrib/factions
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
|
end
|
||||||
},false)
|
},false)
|
||||||
|
|
||||||
factions.register_command("delcare_war", {
|
factions.register_command("declare_war", {
|
||||||
description = "Delcare war on a faction.",
|
description = "Declare war on a faction.",
|
||||||
global_privileges = def_global_privileges,
|
global_privileges = def_global_privileges,
|
||||||
format = {"string"},
|
format = {"string"},
|
||||||
faction_permissions = {"diplomacy"},
|
faction_permissions = {"diplomacy"},
|
||||||
on_success = function(player, faction, pos, parcelpos, args)
|
on_success = function(player, faction, pos, parcelpos, args)
|
||||||
if not faction.enemies[args.strings[1]] then
|
if not faction.enemies[args.strings[1]] then
|
||||||
if args.strings[1] == faction.name 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
|
return false
|
||||||
end
|
end
|
||||||
if faction.allies[args.strings[1]] then
|
if faction.allies[args.strings[1]] then
|
||||||
|
Loading…
Reference in New Issue
Block a user