39 lines
922 B
Java
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);
|
|
}
|
|
|
|
}
|