2014-12-28 17:22:53 +01:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.Factions;
|
2015-10-21 19:35:41 +02:00
|
|
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
|
|
|
import com.massivecraft.factions.cmd.type.TypeMPlayer;
|
|
|
|
import com.massivecraft.massivecore.cmd.Visibility;
|
2014-12-28 17:22:53 +01:00
|
|
|
import com.massivecraft.massivecore.util.MUtil;
|
|
|
|
|
|
|
|
public class CmdFactionsRankOld extends FactionsCommand
|
|
|
|
{
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// FIELDS
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
2014-12-30 10:01:54 +01:00
|
|
|
public final String rankName;
|
2014-12-28 17:22:53 +01:00
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
public CmdFactionsRankOld(String rank)
|
|
|
|
{
|
2014-12-30 10:01:54 +01:00
|
|
|
// Fields
|
2014-12-28 17:22:53 +01:00
|
|
|
this.rankName = rank.toLowerCase();
|
|
|
|
|
|
|
|
// Aliases
|
|
|
|
this.addAliases(rankName);
|
|
|
|
|
2015-10-21 19:35:41 +02:00
|
|
|
// Parameters
|
|
|
|
this.addParameter(TypeMPlayer.get(), "player");
|
|
|
|
this.addParameter(TypeFaction.get(), "faction", "their");
|
2014-12-28 17:22:53 +01:00
|
|
|
|
2015-10-21 19:35:41 +02:00
|
|
|
// Visibility
|
|
|
|
this.setVisibility(Visibility.INVISIBLE);
|
2014-12-28 17:22:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// 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-30 10:01:54 +01:00
|
|
|
|
2014-12-28 17:22:53 +01:00
|
|
|
}
|