Interface AdditionsCommand
public interface AdditionsCommand
Custom AdditionsPlus Command class.
Execute or overrides bukkit commands with custom actions, aliases and more.
-
Method Summary
Modifier and TypeMethodDescriptionGet the actions of this command.Get theList
of command aliases.Get the command name.long
Get the cooldown in ticks.Get the on-cooldown message of this command.Get the description of this command.Get the message that is sent to the player when they do not have permission for this command.Get the required Bukkit permission of this command.Get the plugin of this command.getUsage()
Get the usage of this command.boolean
Get whether the command should be registered to Bukkit.void
setActions
(List<String> actions) Set theactions of this command.void
setAliases
(List<String> aliases) Set theList
of aliases of this command.void
setCooldown
(long cooldown) Set the cooldown in ticks.void
setCooldownMessage
(String cooldownMessage) Set the on-cooldown message of this command.void
setDescription
(String description) Set the description of the command.void
setNoPermissionMessage
(String message) Set the message that is sent to the player when they do not have permission for this command.void
setPermission
(String permission) Set the permission of this command.void
setRegister
(boolean register) Set whether this command should be registered to Bukkit.void
Set the usage of this command.
-
Method Details
-
getPlugin
String getPlugin()Get the plugin of this command.- Returns:
- Plugin of this command.
-
getCommandName
String getCommandName()Get the command name.- Returns:
- Command name.
-
getAliases
Get theList
of command aliases.- Returns:
List
of aliases.
-
setAliases
Set theList
of aliases of this command.- Parameters:
aliases
-List
of aliases.
-
getCooldown
long getCooldown()Get the cooldown in ticks.- Returns:
- Cooldown in ticks.
-
setCooldown
void setCooldown(long cooldown) Set the cooldown in ticks.- Parameters:
cooldown
- Cooldown in ticks.
-
getCooldownMessage
String getCooldownMessage()Get the on-cooldown message of this command.- Returns:
- Cooldown message.
-
setCooldownMessage
Set the on-cooldown message of this command.- Parameters:
cooldownMessage
- Message to send.
-
getPermission
String getPermission()Get the required Bukkit permission of this command.- Returns:
- Required Bukkit permission.
-
setPermission
Set the permission of this command.- Parameters:
permission
- Bukkit permission.
-
getNoPermissionMessage
String getNoPermissionMessage()Get the message that is sent to the player when they do not have permission for this command.- Returns:
- No permission message to send.
-
setNoPermissionMessage
Set the message that is sent to the player when they do not have permission for this command.- Parameters:
message
- Message to send.
-
isRegister
boolean isRegister()Get whether the command should be registered to Bukkit. If this is enabled, the message will pop up while tab completing. This is required if you want the command to be executable from other plugins.- Returns:
- True if enabled, false otherwise.
-
setRegister
void setRegister(boolean register) Set whether this command should be registered to Bukkit.- Parameters:
register
- Whether the command should be registered.
-
getActions
Get the actions of this command.- Returns:
List
of actions.
-
setActions
Set theactions of this command.- Parameters:
actions
-List
of actions.
-
getUsage
String getUsage()Get the usage of this command.- Returns:
- Usage of this command.
-
setUsage
Set the usage of this command.- Parameters:
usage
- New usage.
-
getDescription
String getDescription()Get the description of this command.- Returns:
- Description of this command.
-
setDescription
Set the description of the command.- Parameters:
description
- Description of the command.
-