Class IAbstractCommand<P extends CodexPlugin<P>>
java.lang.Object
studio.magemonkey.codex.commands.api.IAbstractCommand<P>
- Direct Known Subclasses:
IGeneralCommand,ISubCommand
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIAbstractCommand(P plugin, String[] aliases) IAbstractCommand(P plugin, String[] aliases, String permission) IAbstractCommand(P plugin, List<String> aliases) IAbstractCommand(P plugin, List<String> aliases, String permission) -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringprotected final voiderrItem(org.bukkit.command.CommandSender sender) protected final voiderrPerm(org.bukkit.command.CommandSender sender) protected final voiderrPlayer(org.bukkit.command.CommandSender sender) protected final voiderrSender(org.bukkit.command.CommandSender sender) protected final voidfinal voidprotected final doubleprotected final doubleprotected final intprotected final intfinal Stringfinal booleanhasPerm(org.bukkit.command.CommandSender sender) final String[]labels()protected abstract voidabstract booleanprotected final voidprintUsage(org.bukkit.command.CommandSender sender) abstract Stringusage()
-
Field Details
-
plugin
-
aliases
-
permission
-
-
Constructor Details
-
IAbstractCommand
-
IAbstractCommand
-
IAbstractCommand
-
IAbstractCommand
-
-
Method Details
-
labels
-
getPermission
-
usage
-
description
-
playersOnly
public abstract boolean playersOnly() -
getTab
-
perform
-
execute
-
hasPerm
public final boolean hasPerm(@NotNull org.bukkit.command.CommandSender sender) -
printUsage
protected final void printUsage(@NotNull org.bukkit.command.CommandSender sender) -
errPerm
protected final void errPerm(@NotNull org.bukkit.command.CommandSender sender) -
errItem
protected final void errItem(@NotNull org.bukkit.command.CommandSender sender) -
errPlayer
protected final void errPlayer(@NotNull org.bukkit.command.CommandSender sender) -
errSender
protected final void errSender(@NotNull org.bukkit.command.CommandSender sender) -
errType
protected final void errType(@NotNull org.bukkit.command.CommandSender sender, @NotNull Class<?> clazz) -
getNumD
protected final double getNumD(@NotNull org.bukkit.command.CommandSender sender, @NotNull String input, double def) -
getNumD
protected final double getNumD(@NotNull org.bukkit.command.CommandSender sender, @NotNull String input, double def, boolean allowNega) -
getNumI
protected final int getNumI(@NotNull org.bukkit.command.CommandSender sender, @NotNull String input, int def) -
getNumI
protected final int getNumI(@NotNull org.bukkit.command.CommandSender sender, @NotNull String input, int def, boolean nega)
-