From 7a4ddc6855b58b8949e43cb0b4d57aab552d484e Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Thu, 4 Jan 2018 01:47:36 -0800 Subject: [PATCH] Actually allow setting of truce --- .../massivecraft/factions/cmd/CmdRelationTruce.java | 11 +++++++++++ .../java/com/massivecraft/factions/cmd/FCmdRoot.java | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 src/main/java/com/massivecraft/factions/cmd/CmdRelationTruce.java diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdRelationTruce.java b/src/main/java/com/massivecraft/factions/cmd/CmdRelationTruce.java new file mode 100644 index 00000000..8136b22c --- /dev/null +++ b/src/main/java/com/massivecraft/factions/cmd/CmdRelationTruce.java @@ -0,0 +1,11 @@ +package com.massivecraft.factions.cmd; + +import com.massivecraft.factions.struct.Relation; + +public class CmdRelationTruce extends FRelationCommand { + + public CmdRelationTruce() { + aliases.add("truce"); + targetRelation = Relation.TRUCE; + } +} diff --git a/src/main/java/com/massivecraft/factions/cmd/FCmdRoot.java b/src/main/java/com/massivecraft/factions/cmd/FCmdRoot.java index a30ad8dd..fcee1046 100644 --- a/src/main/java/com/massivecraft/factions/cmd/FCmdRoot.java +++ b/src/main/java/com/massivecraft/factions/cmd/FCmdRoot.java @@ -42,6 +42,7 @@ public class FCmdRoot extends FCommand { public CmdRelationAlly cmdRelationAlly = new CmdRelationAlly(); public CmdRelationEnemy cmdRelationEnemy = new CmdRelationEnemy(); public CmdRelationNeutral cmdRelationNeutral = new CmdRelationNeutral(); + public CmdRelationTruce cmdRelationTruce = new CmdRelationTruce(); public CmdReload cmdReload = new CmdReload(); public CmdSafeunclaimall cmdSafeunclaimall = new CmdSafeunclaimall(); public CmdSaveAll cmdSaveAll = new CmdSaveAll(); @@ -127,6 +128,7 @@ public class FCmdRoot extends FCommand { this.addSubCommand(this.cmdRelationAlly); this.addSubCommand(this.cmdRelationEnemy); this.addSubCommand(this.cmdRelationNeutral); + this.addSubCommand(this.cmdRelationTruce); this.addSubCommand(this.cmdReload); this.addSubCommand(this.cmdSafeunclaimall); this.addSubCommand(this.cmdSaveAll);