Also sethome
This commit is contained in:
parent
cbf9246981
commit
141bf2f6fc
@ -29,6 +29,8 @@ public class CmdFactions extends FactionsCommand
|
|||||||
public CmdFactionsLeave cmdFactionsLeave = new CmdFactionsLeave();
|
public CmdFactionsLeave cmdFactionsLeave = new CmdFactionsLeave();
|
||||||
public CmdFactionsWarp cmdFactionsWarp = new CmdFactionsWarp();
|
public CmdFactionsWarp cmdFactionsWarp = new CmdFactionsWarp();
|
||||||
public CmdFactionsHome cmdFactionsHome = new CmdFactionsHome();
|
public CmdFactionsHome cmdFactionsHome = new CmdFactionsHome();
|
||||||
|
public CmdFactionsSethome cmdFactionsSethome = new CmdFactionsSethome();
|
||||||
|
public CmdFactionsUnsethome cmdFactionsUnsethome = new CmdFactionsUnsethome();
|
||||||
public CmdFactionsVote cmdFactionsVote = new CmdFactionsVote();
|
public CmdFactionsVote cmdFactionsVote = new CmdFactionsVote();
|
||||||
public CmdFactionsMap cmdFactionsMap = new CmdFactionsMap();
|
public CmdFactionsMap cmdFactionsMap = new CmdFactionsMap();
|
||||||
public CmdFactionsCreate cmdFactionsCreate = new CmdFactionsCreate();
|
public CmdFactionsCreate cmdFactionsCreate = new CmdFactionsCreate();
|
||||||
@ -79,8 +81,6 @@ public class CmdFactions extends FactionsCommand
|
|||||||
|
|
||||||
// Deprecated Commands
|
// Deprecated Commands
|
||||||
this.addChild(new MassiveCommandDeprecated(this.cmdFactionsRank, "leader", "owner", "officer", "moderator", "coleader"));
|
this.addChild(new MassiveCommandDeprecated(this.cmdFactionsRank, "leader", "owner", "officer", "moderator", "coleader"));
|
||||||
this.addChild(new MassiveCommandDeprecated(this.cmdFactionsWarp.cmdFactionWarpAdd, "sethome"));
|
|
||||||
this.addChild(new MassiveCommandDeprecated(this.cmdFactionsWarp.cmdFactionWarpRemove, "unsethome"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
37
src/com/massivecraft/factions/cmd/CmdFactionsSethome.java
Normal file
37
src/com/massivecraft/factions/cmd/CmdFactionsSethome.java
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
|
import com.massivecraft.factions.entity.MConf;
|
||||||
|
import com.massivecraft.massivecore.MassiveException;
|
||||||
|
import com.massivecraft.massivecore.command.Visibility;
|
||||||
|
import com.massivecraft.massivecore.command.requirement.RequirementIsPlayer;
|
||||||
|
import com.massivecraft.massivecore.util.MUtil;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class CmdFactionsSethome extends FactionsCommandWarp
|
||||||
|
{
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// CONSTRUCT
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
public CmdFactionsSethome()
|
||||||
|
{
|
||||||
|
// Requirements
|
||||||
|
this.addRequirements(RequirementIsPlayer.get());
|
||||||
|
|
||||||
|
// Visibility
|
||||||
|
this.setVisibility(Visibility.INVISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// OVERRIDE
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void perform() throws MassiveException
|
||||||
|
{
|
||||||
|
List<String> args = MUtil.list(MConf.get().warpsHomeName);
|
||||||
|
CmdFactions.get().cmdFactionsWarp.cmdFactionWarpAdd.execute(me, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
37
src/com/massivecraft/factions/cmd/CmdFactionsUnsethome.java
Normal file
37
src/com/massivecraft/factions/cmd/CmdFactionsUnsethome.java
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
package com.massivecraft.factions.cmd;
|
||||||
|
|
||||||
|
import com.massivecraft.factions.entity.MConf;
|
||||||
|
import com.massivecraft.massivecore.MassiveException;
|
||||||
|
import com.massivecraft.massivecore.command.Visibility;
|
||||||
|
import com.massivecraft.massivecore.command.requirement.RequirementIsPlayer;
|
||||||
|
import com.massivecraft.massivecore.util.MUtil;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class CmdFactionsUnsethome extends FactionsCommandWarp
|
||||||
|
{
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// CONSTRUCT
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
public CmdFactionsUnsethome()
|
||||||
|
{
|
||||||
|
// Requirements
|
||||||
|
this.addRequirements(RequirementIsPlayer.get());
|
||||||
|
|
||||||
|
// Visibility
|
||||||
|
this.setVisibility(Visibility.INVISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// OVERRIDE
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void perform() throws MassiveException
|
||||||
|
{
|
||||||
|
List<String> args = MUtil.list(MConf.get().warpsHomeName);
|
||||||
|
CmdFactions.get().cmdFactionsWarp.cmdFactionWarpRemove.execute(me, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user