Package com.sk89q.bukkit.util
Class DynamicPluginCommand
java.lang.Object
org.bukkit.command.Command
com.sk89q.bukkit.util.DynamicPluginCommand
- All Implemented Interfaces:
PluginIdentifiableCommand
An implementation of a dynamically registered
Command
attached to a plugin.-
Field Summary
Modifier and TypeFieldDescriptionprotected final CommandExecutor
protected final Plugin
protected String[]
protected final Object
Fields inherited from class org.bukkit.command.Command
description, timings, usageMessage
-
Constructor Summary
ConstructorDescriptionDynamicPluginCommand
(String[] aliases, String desc, String usage, CommandExecutor owner, Object registeredWith, Plugin plugin) -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(CommandSender sender, String label, String[] args) getOwner()
String[]
void
setPermissions
(String[] permissions) tabComplete
(CommandSender sender, String alias, String[] args) boolean
testPermissionSilent
(CommandSender sender) Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, canBeOverriden, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getTimingName, getUsage, isRegistered, permissionMessage, permissionMessage, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, toString, unregister
-
Field Details
-
owner
-
registeredWith
-
owningPlugin
-
permissions
-
-
Constructor Details
-
DynamicPluginCommand
-
-
Method Details
-
execute
-
getOwner
-
getRegisteredWith
-
setPermissions
-
getPermissions
-
getPlugin
- Specified by:
getPlugin
in interfacePluginIdentifiableCommand
-
tabComplete
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException - Overrides:
tabComplete
in classCommand
- Throws:
IllegalArgumentException
-
testPermissionSilent
- Overrides:
testPermissionSilent
in classCommand
-