public abstract class FCommand extends MCommand<SavageFactions>
Modifier and Type | Field and Description |
---|---|
boolean |
disableOnLock |
FPlayer |
fme |
boolean |
isMoneyCommand |
Faction |
myFaction |
static java.text.SimpleDateFormat |
sdf |
boolean |
senderMustBeAdmin |
boolean |
senderMustBeColeader |
boolean |
senderMustBeMember |
boolean |
senderMustBeModerator |
aliases, allowNoSlashAccess, args, commandChain, errorOnToManyArgs, helpLong, me, optionalArgs, p, permission, requiredArgs, sender, senderIsConsole, senderMustBePlayer, subCommands, visibility
Constructor and Description |
---|
FCommand() |
Modifier and Type | Method and Description |
---|---|
FPlayer |
argAsBestFPlayerMatch(int idx) |
FPlayer |
argAsBestFPlayerMatch(int idx,
FPlayer def) |
FPlayer |
argAsBestFPlayerMatch(int idx,
FPlayer def,
boolean msg) |
Faction |
argAsFaction(int idx) |
Faction |
argAsFaction(int idx,
Faction def) |
Faction |
argAsFaction(int idx,
Faction def,
boolean msg) |
FPlayer |
argAsFPlayer(int idx) |
FPlayer |
argAsFPlayer(int idx,
FPlayer def) |
FPlayer |
argAsFPlayer(int idx,
FPlayer def,
boolean msg) |
boolean |
assertHasFaction() |
boolean |
assertMinRole(Role role) |
boolean |
canAffordCommand(double cost,
java.lang.String toDoThis) |
boolean |
canIAdministerYou(FPlayer i,
FPlayer you) |
void |
doWarmUp(FPlayer player,
WarmUpUtil.Warmup warmup,
TL translationKey,
java.lang.String action,
java.lang.Runnable runnable,
long delay) |
void |
doWarmUp(WarmUpUtil.Warmup warmup,
TL translationKey,
java.lang.String action,
java.lang.Runnable runnable,
long delay) |
void |
execute(org.bukkit.command.CommandSender sender,
java.util.List<java.lang.String> args,
java.util.List<MCommand<?>> commandChain) |
boolean |
isEnabled() |
boolean |
payForCommand(double cost,
java.lang.String toDoThis,
java.lang.String forDoingThis) |
boolean |
payForCommand(double cost,
TL toDoThis,
TL forDoingThis) |
FPlayer |
strAsBestFPlayerMatch(java.lang.String name,
FPlayer def,
boolean msg) |
Faction |
strAsFaction(java.lang.String name,
Faction def,
boolean msg) |
FPlayer |
strAsFPlayer(java.lang.String name,
FPlayer def,
boolean msg) |
boolean |
validSenderType(org.bukkit.command.CommandSender sender,
boolean informSenderIfNot) |
addSubCommand, argAsBestPlayerMatch, argAsBestPlayerMatch, argAsBestPlayerMatch, argAsBool, argAsBool, argAsDouble, argAsDouble, argAsInt, argAsInt, argAsPlayer, argAsPlayer, argAsPlayer, argAsString, argAsString, argIsSet, execute, getHelpShort, getToolTips, getToolTips, getUsageTranslation, getUseageTemplate, getUseageTemplate, getUseageTemplate, msg, msg, perform, replaceFactionTags, replaceFPlayerTags, sendFancyMessage, sendFancyMessage, sendMessage, sendMessage, setHelpShort, strAsBestPlayerMatch, strAsBool, strAsDouble, strAsInt, strAsPlayer, validArgs, validArgs, validCall, validSenderPermissions
public static final java.text.SimpleDateFormat sdf
public boolean disableOnLock
public FPlayer fme
public Faction myFaction
public boolean senderMustBeMember
public boolean senderMustBeModerator
public boolean senderMustBeAdmin
public boolean senderMustBeColeader
public boolean isMoneyCommand
public void execute(org.bukkit.command.CommandSender sender, java.util.List<java.lang.String> args, java.util.List<MCommand<?>> commandChain)
execute
in
class MCommand<SavageFactions>
public boolean isEnabled()
isEnabled
in
class MCommand<SavageFactions>
public boolean validSenderType(org.bukkit.command.CommandSender sender, boolean informSenderIfNot)
validSenderType
in
class MCommand<SavageFactions>
public boolean assertHasFaction()
public boolean assertMinRole(Role role)
public FPlayer argAsFPlayer(int idx)
public FPlayer strAsBestFPlayerMatch(java.lang.String name, FPlayer def, boolean msg)
public FPlayer argAsBestFPlayerMatch(int idx)
public Faction argAsFaction(int idx)
public boolean payForCommand(double cost, java.lang.String toDoThis, java.lang.String forDoingThis)
public boolean canAffordCommand(double cost, java.lang.String toDoThis)
public void doWarmUp(WarmUpUtil.Warmup warmup, TL translationKey, java.lang.String action, java.lang.Runnable runnable, long delay)
public void doWarmUp(FPlayer player, WarmUpUtil.Warmup warmup, TL translationKey, java.lang.String action, java.lang.Runnable runnable, long delay)