diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsHome.java b/src/com/massivecraft/factions/cmd/CmdFactionsHome.java index bd829096..22617606 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsHome.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsHome.java @@ -1,5 +1,6 @@ package com.massivecraft.factions.cmd; +import com.massivecraft.factions.cmd.type.TypeFaction; import com.massivecraft.factions.entity.MConf; import com.massivecraft.massivecore.MassiveException; import com.massivecraft.massivecore.command.Visibility; @@ -19,6 +20,10 @@ public class CmdFactionsHome extends FactionsCommandWarp // Requirements this.addRequirements(RequirementIsPlayer.get()); + // Parameters + this.addParameter(TypeFaction.get(), "faction", "you"); + + // Visibility this.setVisibility(Visibility.INVISIBLE); } @@ -30,7 +35,7 @@ public class CmdFactionsHome extends FactionsCommandWarp @Override public void perform() throws MassiveException { - List args = MUtil.list(MConf.get().warpsHomeName); + List args = MUtil.list(MConf.get().warpsHomeName, this.argAt(0)); CmdFactions.get().cmdFactionsWarp.cmdFactionsWarpGo.execute(me, args); } diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsSethome.java b/src/com/massivecraft/factions/cmd/CmdFactionsSethome.java index 65d8fb3b..feca44bb 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsSethome.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsSethome.java @@ -1,5 +1,6 @@ package com.massivecraft.factions.cmd; +import com.massivecraft.factions.cmd.type.TypeFaction; import com.massivecraft.factions.entity.MConf; import com.massivecraft.massivecore.MassiveException; import com.massivecraft.massivecore.command.Visibility; @@ -19,6 +20,9 @@ public class CmdFactionsSethome extends FactionsCommandWarp // Requirements this.addRequirements(RequirementIsPlayer.get()); + // Parameters + this.addParameter(TypeFaction.get(), "faction", "you"); + // Visibility this.setVisibility(Visibility.INVISIBLE); } @@ -30,7 +34,7 @@ public class CmdFactionsSethome extends FactionsCommandWarp @Override public void perform() throws MassiveException { - List args = MUtil.list(MConf.get().warpsHomeName); + List args = MUtil.list(MConf.get().warpsHomeName, this.argAt(0)); CmdFactions.get().cmdFactionsWarp.cmdFactionWarpAdd.execute(me, args); } diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsUnsethome.java b/src/com/massivecraft/factions/cmd/CmdFactionsUnsethome.java index 00edce4c..54907a47 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsUnsethome.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsUnsethome.java @@ -1,5 +1,6 @@ package com.massivecraft.factions.cmd; +import com.massivecraft.factions.cmd.type.TypeFaction; import com.massivecraft.factions.entity.MConf; import com.massivecraft.massivecore.MassiveException; import com.massivecraft.massivecore.command.Visibility; @@ -19,6 +20,9 @@ public class CmdFactionsUnsethome extends FactionsCommandWarp // Requirements this.addRequirements(RequirementIsPlayer.get()); + // Parameters + this.addParameter(TypeFaction.get(), "faction", "you"); + // Visibility this.setVisibility(Visibility.INVISIBLE); } @@ -30,7 +34,7 @@ public class CmdFactionsUnsethome extends FactionsCommandWarp @Override public void perform() throws MassiveException { - List args = MUtil.list(MConf.get().warpsHomeName); + List args = MUtil.list(MConf.get().warpsHomeName, this.argAt(0)); CmdFactions.get().cmdFactionsWarp.cmdFactionWarpRemove.execute(me, args); }