MassiveCore - Editor Improvements. Only single singletons. Shared annotation for inner types.

This commit is contained in:
Olof Larsson 2016-06-08 13:00:15 +02:00
parent 011a59eb47
commit 20889576ab
No known key found for this signature in database
GPG Key ID: BBEF14F97DA52474
8 changed files with 16 additions and 16 deletions

View File

@ -7,7 +7,7 @@ import com.massivecraft.factions.entity.Faction;
import com.massivecraft.factions.entity.MPerm;
import com.massivecraft.massivecore.MassiveException;
import com.massivecraft.massivecore.command.requirement.RequirementHasPerm;
import com.massivecraft.massivecore.command.type.primitive.TypeBoolean;
import com.massivecraft.massivecore.command.type.primitive.TypeBooleanYes;
public class CmdFactionsAccessFaction extends CmdFactionsAccessAbstract
{
@ -22,7 +22,7 @@ public class CmdFactionsAccessFaction extends CmdFactionsAccessAbstract
// Parameters
this.addParameter(TypeFaction.get(), "faction");
this.addParameter(TypeBoolean.getYes(), "yes/no", "toggle");
this.addParameter(TypeBooleanYes.get(), "yes/no", "toggle");
// Requirements
this.addRequirements(RequirementHasPerm.get(Perm.ACCESS_FACTION));

View File

@ -7,7 +7,7 @@ import com.massivecraft.factions.entity.MPerm;
import com.massivecraft.factions.entity.MPlayer;
import com.massivecraft.massivecore.MassiveException;
import com.massivecraft.massivecore.command.requirement.RequirementHasPerm;
import com.massivecraft.massivecore.command.type.primitive.TypeBoolean;
import com.massivecraft.massivecore.command.type.primitive.TypeBooleanYes;
public class CmdFactionsAccessPlayer extends CmdFactionsAccessAbstract
{
@ -22,7 +22,7 @@ public class CmdFactionsAccessPlayer extends CmdFactionsAccessAbstract
// Parameters
this.addParameter(TypeMPlayer.get(), "player");
this.addParameter(TypeBoolean.getYes(), "yes/no", "toggle");
this.addParameter(TypeBooleanYes.get(), "yes/no", "toggle");
// Requirements
this.addRequirements(RequirementHasPerm.get(Perm.ACCESS_PLAYER));

View File

@ -9,7 +9,7 @@ import com.massivecraft.factions.entity.MPerm;
import com.massivecraft.factions.event.EventFactionsFlagChange;
import com.massivecraft.massivecore.MassiveException;
import com.massivecraft.massivecore.command.requirement.RequirementHasPerm;
import com.massivecraft.massivecore.command.type.primitive.TypeBoolean;
import com.massivecraft.massivecore.command.type.primitive.TypeBooleanYes;
public class CmdFactionsFlagSet extends FactionsCommand
{
@ -24,7 +24,7 @@ public class CmdFactionsFlagSet extends FactionsCommand
// Parameters
this.addParameter(TypeMFlag.get(), "flag");
this.addParameter(TypeBoolean.getYes(), "yes/no");
this.addParameter(TypeBooleanYes.get(), "yes/no");
this.addParameter(TypeFaction.get(), "faction", "you");
// Requirements

View File

@ -10,7 +10,7 @@ import com.massivecraft.factions.entity.BoardColl;
import com.massivecraft.massivecore.MassiveException;
import com.massivecraft.massivecore.command.requirement.RequirementHasPerm;
import com.massivecraft.massivecore.command.requirement.RequirementIsPlayer;
import com.massivecraft.massivecore.command.type.primitive.TypeBoolean;
import com.massivecraft.massivecore.command.type.primitive.TypeBooleanYes;
import com.massivecraft.massivecore.ps.PS;
public class CmdFactionsMap extends FactionsCommand
@ -25,7 +25,7 @@ public class CmdFactionsMap extends FactionsCommand
this.addAliases("map");
// Parameters
this.addParameter(TypeBoolean.getOn(), "on/off", "once");
this.addParameter(TypeBooleanYes.get(), "on/off", "once");
// Requirements
this.addRequirements(RequirementHasPerm.get(Perm.MAP));

View File

@ -4,7 +4,7 @@ import com.massivecraft.factions.Factions;
import com.massivecraft.factions.Perm;
import com.massivecraft.massivecore.MassiveException;
import com.massivecraft.massivecore.command.requirement.RequirementHasPerm;
import com.massivecraft.massivecore.command.type.primitive.TypeBoolean;
import com.massivecraft.massivecore.command.type.primitive.TypeBooleanYes;
import com.massivecraft.massivecore.util.IdUtil;
import com.massivecraft.massivecore.util.Txt;
@ -20,7 +20,7 @@ public class CmdFactionsOverride extends FactionsCommand
this.addAliases("override", "admin");
// Parameters
this.addParameter(TypeBoolean.getOn(), "on/off", "flip");
this.addParameter(TypeBooleanYes.get(), "on/off", "flip");
// Requirements
this.addRequirements(RequirementHasPerm.get(Perm.OVERRIDE));

View File

@ -14,7 +14,7 @@ import com.massivecraft.factions.entity.MPlayer;
import com.massivecraft.factions.event.EventFactionsPermChange;
import com.massivecraft.massivecore.MassiveException;
import com.massivecraft.massivecore.command.requirement.RequirementHasPerm;
import com.massivecraft.massivecore.command.type.primitive.TypeBoolean;
import com.massivecraft.massivecore.command.type.primitive.TypeBooleanYes;
import com.massivecraft.massivecore.util.Txt;
public class CmdFactionsPermSet extends FactionsCommand
@ -31,7 +31,7 @@ public class CmdFactionsPermSet extends FactionsCommand
// Parameters
this.addParameter(TypeMPerm.get(), "perm");
this.addParameter(TypeRel.get(), "relation");
this.addParameter(TypeBoolean.getYes(), "yes/no");
this.addParameter(TypeBooleanYes.get(), "yes/no");
this.addParameter(TypeFaction.get(), "faction", "you");
// Requirements

View File

@ -4,7 +4,7 @@ import com.massivecraft.factions.Perm;
import com.massivecraft.massivecore.MassiveException;
import com.massivecraft.massivecore.command.requirement.RequirementHasPerm;
import com.massivecraft.massivecore.command.requirement.RequirementIsPlayer;
import com.massivecraft.massivecore.command.type.primitive.TypeBoolean;
import com.massivecraft.massivecore.command.type.primitive.TypeBooleanOn;
import com.massivecraft.massivecore.util.Txt;
public class CmdFactionsSeeChunk extends FactionsCommand
@ -19,7 +19,7 @@ public class CmdFactionsSeeChunk extends FactionsCommand
this.addAliases("sc", "seechunk");
// Parameters
this.addParameter(TypeBoolean.getOn(), "active", "toggle");
this.addParameter(TypeBooleanOn.get(), "active", "toggle");
// Requirements
this.addRequirements(RequirementHasPerm.get(Perm.SEECHUNK));

View File

@ -5,7 +5,7 @@ import com.massivecraft.massivecore.MassiveException;
import com.massivecraft.massivecore.command.Visibility;
import com.massivecraft.massivecore.command.requirement.RequirementHasPerm;
import com.massivecraft.massivecore.command.requirement.RequirementTitlesAvailable;
import com.massivecraft.massivecore.command.type.primitive.TypeBoolean;
import com.massivecraft.massivecore.command.type.primitive.TypeBooleanOn;
import com.massivecraft.massivecore.mixin.MixinTitle;
import com.massivecraft.massivecore.util.Txt;
@ -21,7 +21,7 @@ public class CmdFactionsTerritorytitles extends FactionsCommand
this.addAliases("tt", "territorytitles");
// Parameters
this.addParameter(TypeBoolean.getOn(), "on|off", "toggle");
this.addParameter(TypeBooleanOn.get(), "on|off", "toggle");
// Requirements
this.addRequirements(RequirementHasPerm.get(Perm.TERRITORYTITLES));