Factions/src/com/massivecraft/factions/cmd/CmdFactionsRankOld.java

48 lines
1.2 KiB
Java
Raw Normal View History

2014-12-28 17:22:53 +01:00
package com.massivecraft.factions.cmd;
import com.massivecraft.factions.Factions;
2015-05-06 17:04:35 +02:00
import com.massivecraft.factions.cmd.arg.ARFaction;
import com.massivecraft.factions.cmd.arg.ARMPlayer;
2014-12-28 17:22:53 +01:00
import com.massivecraft.massivecore.cmd.VisibilityMode;
import com.massivecraft.massivecore.util.MUtil;
public class CmdFactionsRankOld extends FactionsCommand
{
// -------------------------------------------- //
// FIELDS
// -------------------------------------------- //
public final String rankName;
2014-12-28 17:22:53 +01:00
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
public CmdFactionsRankOld(String rank)
{
// Fields
2014-12-28 17:22:53 +01:00
this.rankName = rank.toLowerCase();
// Aliases
this.addAliases(rankName);
// Args
2015-07-24 13:42:06 +02:00
this.addArg(ARMPlayer.get(), "player");
2015-05-06 17:04:35 +02:00
this.addArg(ARFaction.get(), "faction", "their");
2014-12-28 17:22:53 +01:00
// VisibilityMode
2014-12-28 17:22:53 +01:00
this.setVisibilityMode(VisibilityMode.INVISIBLE);
}
// -------------------------------------------- //
// OVERRIDE
// -------------------------------------------- //
@Override
public void perform()
{
2015-05-06 17:04:35 +02:00
Factions.get().getOuterCmdFactions().cmdFactionsRank.execute(sender, MUtil.list(this.argAt(0), this.rankName, this.argAt(1)));
2014-12-28 17:22:53 +01:00
}
2014-12-28 17:22:53 +01:00
}