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

37 lines
775 B
Java
Raw Normal View History

package com.massivecraft.factions.cmd;
import com.massivecraft.factions.cmd.arg.ARFaction;
import com.massivecraft.factions.entity.Faction;
2014-11-19 10:30:44 +01:00
public abstract class CmdFactionsSetXAll extends CmdFactionsSetX
{
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
2014-11-19 10:30:44 +01:00
public CmdFactionsSetXAll(boolean claim)
{
2014-11-19 10:30:44 +01:00
// Super
super(claim);
// Args
this.addRequiredArg("all|map");
2014-11-19 10:30:44 +01:00
this.addRequiredArg("faction");
if (claim)
{
this.addRequiredArg("newfaction");
this.setFactionArgIndex(2);
}
}
// -------------------------------------------- //
// EXTRAS
// -------------------------------------------- //
public Faction getOldFaction()
{
return this.arg(1, ARFaction.get());
}
}