Factions3/src/com/massivecraft/factions/cmd/CmdFactionsSetXAll.java
2015-05-06 21:44:59 +02:00

39 lines
922 B
Java

package com.massivecraft.factions.cmd;
import com.massivecraft.factions.cmd.arg.ARFaction;
import com.massivecraft.factions.entity.Faction;
import com.massivecraft.massivecore.MassiveException;
import com.massivecraft.massivecore.cmd.arg.ARString;
public abstract class CmdFactionsSetXAll extends CmdFactionsSetX
{
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
public CmdFactionsSetXAll(boolean claim)
{
// Super
super(claim);
// Args
this.addArg(ARString.get(), "all|map");
this.addArg(ARFaction.get(), "faction");
if (claim)
{
this.addArg(ARFaction.get(), "newfaction");
this.setFactionArgIndex(2);
}
}
// -------------------------------------------- //
// EXTRAS
// -------------------------------------------- //
public Faction getOldFaction() throws MassiveException
{
return this.readArgAt(1);
}
}