49 lines
1.1 KiB
Java
49 lines
1.1 KiB
Java
package com.massivecraft.factions.cmd;
|
|
|
|
import com.massivecraft.factions.cmd.type.TypeMPlayer;
|
|
import com.massivecraft.massivecore.command.Visibility;
|
|
import com.massivecraft.massivecore.util.MUtil;
|
|
|
|
public class CmdFactionsRankOld extends FactionsCommand
|
|
{
|
|
// -------------------------------------------- //
|
|
// FIELDS
|
|
// -------------------------------------------- //
|
|
|
|
public final String rankName;
|
|
|
|
// -------------------------------------------- //
|
|
// CONSTRUCT
|
|
// -------------------------------------------- //
|
|
|
|
public CmdFactionsRankOld(String rank)
|
|
{
|
|
// Fields
|
|
this.rankName = rank.toLowerCase();
|
|
this.setSetupEnabled(false);
|
|
|
|
// Aliases
|
|
this.addAliases(rankName);
|
|
|
|
// Parameters
|
|
this.addParameter(TypeMPlayer.get(), "player");
|
|
|
|
// Visibility
|
|
this.setVisibility(Visibility.INVISIBLE);
|
|
}
|
|
|
|
// -------------------------------------------- //
|
|
// OVERRIDE
|
|
// -------------------------------------------- //
|
|
|
|
@Override
|
|
public void perform()
|
|
{
|
|
CmdFactions.get().cmdFactionsRank.cmdFactionsRankSet.execute(sender, MUtil.list(
|
|
this.argAt(0),
|
|
this.rankName
|
|
));
|
|
}
|
|
|
|
}
|