Index

A B C D E F G H I K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

A

addCustomParameter(String, Function<CommandArguments, B>) - Method in class me.despical.commandframework.CommandFramework
Adds a custom parameter to the parameter handler.
addCustomParameter(String, Function<CommandArguments, B>) - Method in class me.despical.commandframework.ParameterHandler
 
aliases() - Element in annotation interface me.despical.commandframework.annotations.Command
An alternative name list of command.
aliases() - Element in annotation interface me.despical.commandframework.annotations.Completer
An alternative name list of command.
allowSeparating() - Element in annotation interface me.despical.commandframework.annotations.Option
Determines whether separating multiple values is allowed.
async() - Element in annotation interface me.despical.commandframework.annotations.Command
This option is now deprecated.

B

BOTH - Enum constant in enum class me.despical.commandframework.annotations.Command.SenderType
 
bypassPerm() - Element in annotation interface me.despical.commandframework.annotations.Confirmation
The permission to bypass confirmations.
bypassPerm() - Element in annotation interface me.despical.commandframework.annotations.Cooldown
Command senders that have this permission will bypass the command cooldown.

C

checkConfirmations(CommandSender, Command, Method) - Method in class me.despical.commandframework.confirmations.ConfirmationManager
 
checkCooldown() - Method in class me.despical.commandframework.CommandArguments
This method checks if the current command sender has a cooldown on the command that is associated with current CommandArguments object.
clear() - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
 
Command - Annotation Interface in me.despical.commandframework.annotations
Main class of the framework to create commands in easy way.
Command.SenderType - Enum Class in me.despical.commandframework.annotations
Available command sender or senders.
CommandArguments - Class in me.despical.commandframework
A utility class to use command arguments without external Bukkit parameters and includes some useful methods to improve code quality and performance.
CommandException - Exception Class in me.despical.commandframework.exceptions
 
CommandException() - Constructor for exception class me.despical.commandframework.exceptions.CommandException
 
CommandException(String) - Constructor for exception class me.despical.commandframework.exceptions.CommandException
 
CommandException(String, Object...) - Constructor for exception class me.despical.commandframework.exceptions.CommandException
 
CommandFramework - Class in me.despical.commandframework
Main class of the framework to register commands, add tab completions and implement a function to run if there is no matched commands related this framework.
CommandFramework(Plugin) - Constructor for class me.despical.commandframework.CommandFramework
 
CommandMatcher() - Constructor for class me.despical.commandframework.CommandRegistry.CommandMatcher
 
CommandRegistry - Class in me.despical.commandframework
This class manages the registry of commands, sub-commands and tab completers associated with those commands.
CommandRegistry.CommandMatcher - Class in me.despical.commandframework
A helper class that contains methods for matching commands and their corresponding tab completers.
Completer - Annotation Interface in me.despical.commandframework.annotations
A utility class in framework to create argument completions for commands.
concatArguments() - Method in class me.despical.commandframework.CommandArguments
Concatenates all arguments into a single String object.
concatRangeOf(int, int) - Method in class me.despical.commandframework.CommandArguments
Concatenates a range of elements from the specified array into a single string, using a space as the delimiter.
Confirmation - Annotation Interface in me.despical.commandframework.annotations
 
ConfirmationManager - Class in me.despical.commandframework.confirmations
This class handles the confirmations for commands and subcommands.
ConfirmationManager() - Constructor for class me.despical.commandframework.confirmations.ConfirmationManager
 
CONFIRMATIONS - Enum constant in enum class me.despical.commandframework.options.FrameworkOption
This option allows users to check for command confirmations.
CONSOLE - Enum constant in enum class me.despical.commandframework.annotations.Command.SenderType
 
containsKey(Object) - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
containsValue(Object) - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
 
Cooldown - Annotation Interface in me.despical.commandframework.annotations
 
CooldownException - Exception Class in me.despical.commandframework.exceptions
 
CooldownException() - Constructor for exception class me.despical.commandframework.exceptions.CooldownException
 
CooldownManager - Class in me.despical.commandframework.cooldown
This class handles the command cooldowns.
CooldownManager(CommandFramework) - Constructor for class me.despical.commandframework.cooldown.CooldownManager
 
createCommand(Command, String) - Static method in class me.despical.commandframework.utils.Utils
 
CUSTOM_COOLDOWN_CHECKER - Enum constant in enum class me.despical.commandframework.options.FrameworkOption
This option allows user to call CommandArguments.checkCooldown() method.

D

Debug - Annotation Interface in me.despical.commandframework.debug
Marks a Command to be registered only if FrameworkOption.DEBUG mode is enabled.
DEBUG - Enum constant in enum class me.despical.commandframework.options.FrameworkOption
This option enables the debug mode for this framework.
DebugLogger - Class in me.despical.commandframework.debug
 
DebugLogger() - Constructor for class me.despical.commandframework.debug.DebugLogger
 
Default - Annotation Interface in me.despical.commandframework.annotations
 
desc() - Element in annotation interface me.despical.commandframework.annotations.Command
The description of the command that will be showed when sender executes Bukkit's help command.

E

enableOption(FrameworkOption) - Method in class me.despical.commandframework.options.OptionManager
 
enableOptions(FrameworkOption...) - Method in class me.despical.commandframework.options.OptionManager
 
entrySet() - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
 
expireAfter() - Element in annotation interface me.despical.commandframework.annotations.Confirmation
How many seconds should pass so the confirmation gets expired.

F

fallbackPrefix() - Element in annotation interface me.despical.commandframework.annotations.Command
By default, using the plugin's name as a fallback prefix.
findOption(String) - Method in class me.despical.commandframework.CommandArguments
 
Flag - Annotation Interface in me.despical.commandframework.annotations
Annotation to specify flags for command arguments.
Flag.FlagContainer - Annotation Interface in me.despical.commandframework.annotations
Container annotation for holding multiple Flag annotations on the same method.
FrameworkOption - Enum Class in me.despical.commandframework.options
 

G

get(Object) - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
getAllCommands() - Method in class me.despical.commandframework.CommandFramework
Get a copy of registered commands and sub-commands.
getArgument(int) - Method in class me.despical.commandframework.CommandArguments
Retrieves the argument at the specified index.
getArgument(int, String) - Method in class me.despical.commandframework.CommandArguments
Returns the indexed element from the arguments array, or the defaultValue if and only if index is out the bounds.
getArgumentAsBoolean(int) - Method in class me.despical.commandframework.CommandArguments
Returns the boolean value of the indexed element from the arguments array.
getArgumentAsDouble(int) - Method in class me.despical.commandframework.CommandArguments
Returns the double value of the indexed element from the arguments array.
getArgumentAsFloat(int) - Method in class me.despical.commandframework.CommandArguments
Returns the float value of the indexed element from the arguments array.
getArgumentAsInt(int) - Method in class me.despical.commandframework.CommandArguments
Returns the integer value of the indexed element from the arguments array.
getArgumentAsLong(int) - Method in class me.despical.commandframework.CommandArguments
Returns the long value of the indexed element from the arguments array.
getArguments() - Method in class me.despical.commandframework.CommandArguments
Retrieves the array of arguments associated with this object.
getAssociatedCommand(String, String[]) - Method in class me.despical.commandframework.CommandRegistry.CommandMatcher
 
getAssociatedCompleter(String, String[]) - Method in class me.despical.commandframework.CommandRegistry.CommandMatcher
 
getBukkitCommand() - Method in class me.despical.commandframework.CommandArguments
Retrieves the Bukkit command associated with this object.
getCommand() - Method in class me.despical.commandframework.CommandArguments
Retrieves the base command associated with this object.
getCommandMatcher() - Method in class me.despical.commandframework.CommandRegistry
 
getCommands() - Method in class me.despical.commandframework.CommandFramework
Get a copy of registered commands.
getCommands() - Method in class me.despical.commandframework.CommandRegistry
 
getDouble(String) - Static method in class me.despical.commandframework.utils.Utils
Convert a String to a double, returning zero if the conversion fails.
getFloat(String) - Static method in class me.despical.commandframework.utils.Utils
Convert a String to a float, returning zero if the conversion fails.
getInstance() - Static method in class me.despical.commandframework.CommandFramework
 
getInt(String) - Static method in class me.despical.commandframework.utils.Utils
Convert a String to an int, returning zero if the conversion fails.
getLabel() - Method in class me.despical.commandframework.CommandArguments
Retrieves the label associated with this object.
getLength() - Method in class me.despical.commandframework.CommandArguments
Returns the number of arguments passed to the command.
getLogger() - Method in class me.despical.commandframework.CommandFramework
Returns the logger instance of Command Framework.
getLong(String) - Static method in class me.despical.commandframework.utils.Utils
Convert a String to a long, returning zero if the conversion fails.
getOption(String) - Method in class me.despical.commandframework.CommandArguments
 
getParameterArray(Method, CommandArguments) - Method in class me.despical.commandframework.ParameterHandler
 
getPlayer(int) - Method in class me.despical.commandframework.CommandArguments
Gets player object from the server with given argument.
getPlayer(String) - Method in class me.despical.commandframework.CommandArguments
Gets player object from the server with given name.
getSender() - Method in class me.despical.commandframework.CommandArguments
Do not try to cast objects except subclasses of CommandSender otherwise ClassCastException will occur.
getSubCommands() - Method in class me.despical.commandframework.CommandFramework
Get a copy of registered sub-commands-.
getSubCommands() - Method in class me.despical.commandframework.CommandRegistry
 

H

handleExceptions(Exception) - Static method in class me.despical.commandframework.utils.Utils
 
hasCooldown(CommandArguments) - Method in class me.despical.commandframework.cooldown.CooldownManager
 
hasCooldown(CommandArguments, Command, Method) - Method in class me.despical.commandframework.cooldown.CooldownManager
 
hasPermission(String) - Method in class me.despical.commandframework.CommandArguments
Returns true if the command sender has required permission or, if permission is empty.

I

instance - Static variable in class me.despical.commandframework.CommandFramework
 
isArgumentsEmpty() - Method in class me.despical.commandframework.CommandArguments
Returns true if the arguments array is empty, otherwise false.
isEmpty() - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
 
isEnabled(FrameworkOption) - Method in class me.despical.commandframework.options.OptionManager
 
isFlagPresent(String) - Method in class me.despical.commandframework.CommandArguments
 
isFloatingDecimal(int) - Method in class me.despical.commandframework.CommandArguments
Checks if the value obtained from the argument at the specified index can be successfully parsed into a floating-point decimal using Double.parseDouble.
isFloatingDecimal(String) - Method in class me.despical.commandframework.CommandArguments
Checks if the given string can be successfully parsed into a floating decimal using Double.parseDouble.
isInteger(int) - Method in class me.despical.commandframework.CommandArguments
Checks if the value obtained from the argument at the specified index can be successfully parsed into an integer using Integer.parseInt.
isInteger(String) - Method in class me.despical.commandframework.CommandArguments
Checks if the given string can be successfully parsed into an integer using Integer.parseInt.
isNumeric(int) - Method in class me.despical.commandframework.CommandArguments
Checks if the value obtained from the argument at the specified index is numeric, i.e., if it contains only digit characters (0-9).
isNumeric(String) - Method in class me.despical.commandframework.CommandArguments
Checks if the given string is numeric, i.e., if it contains only digit characters (0-9).
isSenderConsole() - Method in class me.despical.commandframework.CommandArguments
Returns true if, and only if, command sender is console.
isSenderPlayer() - Method in class me.despical.commandframework.CommandArguments
Returns true if, and only if, command sender is player.

K

keySeparator() - Element in annotation interface me.despical.commandframework.annotations.Option
Specifies the separator between key and value.
keySet() - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
 

L

LONG_ARG_SIZE - Enum constant in enum class me.despical.commandframework.Message
 

M

mapEntry(K, V) - Static method in class me.despical.commandframework.utils.Utils
Returns a Map.Entry containing the given key and value.
mapOf(Map.Entry<K, V>...) - Static method in class me.despical.commandframework.utils.Utils
Returns a mutable map containing an arbitrary number of elements.
mapOf(K, V) - Static method in class me.despical.commandframework.utils.Utils
Returns an mutable map containing one element.
max() - Element in annotation interface me.despical.commandframework.annotations.Command
Maximum value of arguments. -1 for infinite.
me.despical.commandframework - package me.despical.commandframework
The main package of the Command Framework containing all core classes and components related to the framework.
me.despical.commandframework.annotations - package me.despical.commandframework.annotations
Contains all annotations provided by the Command Framework.
me.despical.commandframework.confirmations - package me.despical.commandframework.confirmations
Provides an internal class responsible for handling command and subcommand confirmations.
me.despical.commandframework.cooldown - package me.despical.commandframework.cooldown
Provides an internal class responsible for handling command cooldowns.
me.despical.commandframework.debug - package me.despical.commandframework.debug
Contains the Debug annotation and DebugLogger, used exclusively for debugging purposes.
me.despical.commandframework.exceptions - package me.despical.commandframework.exceptions
Provides custom exception classes used by the Command Framework.
me.despical.commandframework.options - package me.despical.commandframework.options
Contains classes that define and handle framework options.
me.despical.commandframework.parser - package me.despical.commandframework.parser
Internal package containing the option parser.
me.despical.commandframework.utils - package me.despical.commandframework.utils
Provides internal utility classes and helpers for the Command Framework.
message() - Element in annotation interface me.despical.commandframework.annotations.Confirmation
The message will be sent to the sender if they have not confirmed yet.
Message - Enum Class in me.despical.commandframework
 
min() - Element in annotation interface me.despical.commandframework.annotations.Command
Minimum value of arguments.
MUST_HAVE_OP - Enum constant in enum class me.despical.commandframework.Message
 

N

name() - Element in annotation interface me.despical.commandframework.annotations.Command
The name of the command.
name() - Element in annotation interface me.despical.commandframework.annotations.Completer
The name of the command.
NO_PERMISSION - Enum constant in enum class me.despical.commandframework.Message
 

O

onCommand(CommandSender, Command, String, String[]) - Method in class me.despical.commandframework.CommandFramework
 
ONLY_BY_CONSOLE - Enum constant in enum class me.despical.commandframework.Message
 
ONLY_BY_PLAYERS - Enum constant in enum class me.despical.commandframework.Message
 
onlyOp() - Element in annotation interface me.despical.commandframework.annotations.Command
Only op players can execute this command.
onTabComplete(CommandSender, Command, String, String[]) - Method in class me.despical.commandframework.CommandFramework
 
Option - Annotation Interface in me.despical.commandframework.annotations
Annotation to define options for command arguments.
Option.OptionContainer - Annotation Interface in me.despical.commandframework.annotations
Container annotation for holding multiple Option annotations on the same method.
OptionManager - Class in me.despical.commandframework.options
This class handles the options related Command Framework.
OptionManager() - Constructor for class me.despical.commandframework.options.OptionManager
 
OptionParser - Class in me.despical.commandframework.parser
 
OptionParser(String[], Method) - Constructor for class me.despical.commandframework.parser.OptionParser
 
options() - Method in class me.despical.commandframework.CommandFramework
Returns the option manager.
overrideConsole() - Element in annotation interface me.despical.commandframework.annotations.Confirmation
If option is true, console will be affected by confirmations; otherwise, it will override the confirmation period to use the command again.
overrideConsole() - Element in annotation interface me.despical.commandframework.annotations.Cooldown
If option is true, console will be affected by cooldowns; otherwise, it will override the delay to use the command again.

P

Param - Annotation Interface in me.despical.commandframework.annotations
 
parameterHandler - Variable in class me.despical.commandframework.CommandFramework
 
ParameterHandler - Class in me.despical.commandframework
 
ParameterHandler() - Constructor for class me.despical.commandframework.ParameterHandler
 
parseFlags() - Method in class me.despical.commandframework.parser.OptionParser
 
parseOptions() - Method in class me.despical.commandframework.parser.OptionParser
 
permission() - Element in annotation interface me.despical.commandframework.annotations.Command
The permission that sender has to have to execute command.
permission() - Element in annotation interface me.despical.commandframework.annotations.Completer
The permission that sender must have to receive tab complete.
PLAYER - Enum constant in enum class me.despical.commandframework.annotations.Command.SenderType
 
plugin - Variable in class me.despical.commandframework.CommandFramework
 
prefix() - Element in annotation interface me.despical.commandframework.annotations.Flag
Specifies the prefix for the flags.
prefix() - Element in annotation interface me.despical.commandframework.annotations.Option
Specifies the prefix for the options.
put(K, V) - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
put(K, V, long) - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
Associates the specified value with the specified key in this map.
put(K, V, long) - Method in interface me.despical.commandframework.utils.SelfExpiringMap
Associates the specified value with the specified key in this map.
putAll(Map<? extends K, ? extends V>) - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
 

R

registerCommand(Command, Method, Object) - Method in class me.despical.commandframework.CommandRegistry
This method registers a command along with its associated method and instance.
registerCommands(Object) - Method in class me.despical.commandframework.CommandFramework
Registers commands in given object's class.
registerCommands(Object) - Method in class me.despical.commandframework.CommandRegistry
Registers commands from the specified instance's class.
remove(Object) - Method in class me.despical.commandframework.utils.SelfExpiringHashMap

S

SelfExpiringHashMap<K,V> - Class in me.despical.commandframework.utils
 
SelfExpiringHashMap() - Constructor for class me.despical.commandframework.utils.SelfExpiringHashMap
 
SelfExpiringMap<K,V> - Interface in me.despical.commandframework.utils
An implementation of Map interface with expiring keys feature.
senderType() - Element in annotation interface me.despical.commandframework.annotations.Command
Enum value of command sender type to define who will use the command.
sendMessage(String) - Method in class me.despical.commandframework.CommandArguments
Sends message to sender without receiving the command sender.
sendMessage(String, Object...) - Method in class me.despical.commandframework.CommandArguments
Sends message to sender without receiving command sender with the given parameters.
sendMessage(Message) - Method in class me.despical.commandframework.CommandArguments
Sends the specified Message to command sender associated with this object.
sendMessage(Component) - Method in class me.despical.commandframework.CommandArguments
Sends the specified Component to command sender associated with this object.
setColorFormatter(Function<String, String>) - Static method in enum class me.despical.commandframework.Message
For instance, can be used to translate Minecraft color and Hex color codes.
setCommandMap(CommandMap) - Method in class me.despical.commandframework.CommandRegistry
Sets the CommandMap for this instance.
setCommandMap(CommandMap) - Method in class me.despical.commandframework.CommandFramework
 
setLogger(Logger) - Method in class me.despical.commandframework.CommandFramework
Changes default logger
setMessage(BiFunction<Command, CommandArguments, Boolean>) - Method in enum class me.despical.commandframework.Message
Set a custom error message.
SHORT_ARG_SIZE - Enum constant in enum class me.despical.commandframework.Message
 
size() - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
 

T

timeUnit() - Element in annotation interface me.despical.commandframework.annotations.Confirmation
The time unit for #expireAfter().
timeUnit() - Element in annotation interface me.despical.commandframework.annotations.Cooldown
The time unit of command cooldown.

U

unregisterCommand(String) - Method in class me.despical.commandframework.CommandFramework
Unregisters command and tab completer if there is with the given name.
unregisterCommand(String) - Method in class me.despical.commandframework.CommandRegistry
Unregisters a command and its associated tab completer if they are registered with the specified name.
unregisterCommands() - Method in class me.despical.commandframework.CommandFramework
Unregisters all of registered commands and tab completers using that instance.
unregisterCommands() - Method in class me.despical.commandframework.CommandRegistry
Unregisters all commands and tab completers that were registered using the instance of this object.
usage() - Element in annotation interface me.despical.commandframework.annotations.Command
The usage of the command that will be showed when sender executes command without required or missing arguments.
Utils - Class in me.despical.commandframework.utils
This class is a part of Despical's Commons library.

V

value() - Element in annotation interface me.despical.commandframework.annotations.Cooldown
The time between using command again.
value() - Element in annotation interface me.despical.commandframework.annotations.Default
The default value for the parameter annotated with Param, if the value of parameter is null.
value() - Element in annotation interface me.despical.commandframework.annotations.Flag.FlagContainer
Holds an array of Flag annotations.
value() - Element in annotation interface me.despical.commandframework.annotations.Flag
Specifies the list of flag values.
value() - Element in annotation interface me.despical.commandframework.annotations.Option.OptionContainer
Holds an array of Option annotations.
value() - Element in annotation interface me.despical.commandframework.annotations.Option
Specifies the key of the option.
value() - Element in annotation interface me.despical.commandframework.annotations.Param
The unique id of the parameter.
valueOf(String) - Static method in enum class me.despical.commandframework.annotations.Command.SenderType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class me.despical.commandframework.Message
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class me.despical.commandframework.options.FrameworkOption
Returns the enum constant of this class with the specified name.
values() - Static method in enum class me.despical.commandframework.annotations.Command.SenderType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class me.despical.commandframework.Message
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class me.despical.commandframework.options.FrameworkOption
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Method in class me.despical.commandframework.utils.SelfExpiringHashMap
 
valueSeparator() - Element in annotation interface me.despical.commandframework.annotations.Option
Specifies the separator used between values.

W

WAIT_BEFORE_USING_AGAIN - Enum constant in enum class me.despical.commandframework.Message
 
A B C D E F G H I K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form