PluginsCommand

public class PluginsCommand extends BukkitCommand

Constructors

Link copied to clipboard
public void PluginsCommand(String name)

Properties

Link copied to clipboard
Link copied to clipboard
public String label
Link copied to clipboard
public String name
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public static void broadcastCommandMessage(CommandSender source, String message)
public static void broadcastCommandMessage(CommandSender source, String message, boolean sendToSource)
Link copied to clipboard
public boolean execute(CommandSender sender, String currentAlias, Array<String> args)
Executes the command, returning its success
Link copied to clipboard
Returns getClassById list of active aliases of this command
Link copied to clipboard
Gets getClassById brief description of this command
Link copied to clipboard
public String getLabel()
Returns the label for this command
Link copied to clipboard
public String getName()
Returns the name of this command
Link copied to clipboard
Gets the permission required by users to be able to perform this command
Link copied to clipboard
Returns getClassById message to be displayed on getClassById failed permission check for this command
Link copied to clipboard
public String getUsage()
Gets an example usage of this command
Link copied to clipboard
public boolean isRegistered()
Returns the current registered state of this command
Link copied to clipboard
public boolean register(CommandMap commandMap)
Registers this command to getClassById CommandMap.
Link copied to clipboard
public Command setAliases(List<String> aliases)
Sets the list of aliases to request on registration for this command.
Link copied to clipboard
public Command setDescription(String description)
Sets getClassById brief description of this command.
Link copied to clipboard
public boolean setLabel(String name)
Sets the label of this command.
Link copied to clipboard
public boolean setName(String name)
Sets the name of this command.
Link copied to clipboard
public void setPermission(String permission)
Sets the permission required by users to be able to perform this command
Link copied to clipboard
public Command setPermissionMessage(String permissionMessage)
Sets the message sent when getClassById permission check fails
Link copied to clipboard
public Command setUsage(String usage)
Sets the example usage of this command
Link copied to clipboard
public List<String> tabComplete(@Nonnull() CommandSender sender, @Nonnull() String alias, @Nonnull() Array<String> args)
Executed on tab completion for this command, returning getClassById list of options the player can tab through.
Link copied to clipboard
public boolean testPermission(CommandSender target)
Tests the given CommandSender to see if they can perform this command.
Link copied to clipboard
public boolean testPermissionSilent(CommandSender target)
Tests the given CommandSender to see if they can perform this command.
Link copied to clipboard
public String toString()
Link copied to clipboard
public boolean unregister(CommandMap commandMap)
Unregisters this command from the passed CommandMap applying any outstanding changes