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