Class TimingsCommand
java.lang.Object
org.core.command.commands.timings.TimingsCommand
- All Implemented Interfaces:
ArgumentCommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<CommandArgument<?>>
Gets the arguments of the command.Gets a description of the command, designing to inform the user on what the command does.Gets the permission node of the command that is required to run the command.boolean
run(CommandContext commandContext, String... args)
Runs the commandMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.core.command.argument.ArgumentCommand
hasPermission
-
Constructor Details
-
TimingsCommand
public TimingsCommand()
-
-
Method Details
-
getArguments
Description copied from interface:ArgumentCommand
Gets the arguments of the command. This should be a list of arguments that do not change- Specified by:
getArguments
in interfaceArgumentCommand
- Returns:
- A list of command arguments
-
getDescription
Description copied from interface:ArgumentCommand
Gets a description of the command, designing to inform the user on what the command does.- Specified by:
getDescription
in interfaceArgumentCommand
- Returns:
- A string of the description
-
getPermissionNode
Description copied from interface:ArgumentCommand
Gets the permission node of the command that is required to run the command. If a permission is not required then this should returnOptional.empty()
When checking to see if this command has permission you should use
ArgumentCommand.hasPermission(CommandSource)
- Specified by:
getPermissionNode
in interfaceArgumentCommand
- Returns:
- The permission to the command
-
run
Description copied from interface:ArgumentCommand
Runs the command- Specified by:
run
in interfaceArgumentCommand
- Parameters:
commandContext
- The command context for this commandargs
- The arguments for the command- Returns:
- if the command should show the usage (false to show)
- Throws:
NotEnoughArguments
- If the arguments provided are not enough for the command, this will throw
-