Package com.sk89q.bukkit.util
Class DynamicPluginCommand
java.lang.Object
org.bukkit.command.Command
com.sk89q.bukkit.util.DynamicPluginCommand
- All Implemented Interfaces:
org.bukkit.command.PluginIdentifiableCommand
public class DynamicPluginCommand
extends org.bukkit.command.Command
implements org.bukkit.command.PluginIdentifiableCommand
An implementation of a dynamically registered
Command
attached to a plugin.-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.bukkit.command.CommandExecutor
protected final org.bukkit.plugin.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, org.bukkit.command.CommandExecutor owner, Object registeredWith, org.bukkit.plugin.Plugin plugin) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getOwner()
String[]
org.bukkit.plugin.Plugin
void
setPermissions
(String[] permissions) tabComplete
(org.bukkit.command.CommandSender sender, String alias, String[] args) boolean
testPermissionSilent
(org.bukkit.command.CommandSender sender) Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, 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
protected final org.bukkit.command.CommandExecutor owner -
registeredWith
-
owningPlugin
protected final org.bukkit.plugin.Plugin owningPlugin -
permissions
-
-
Constructor Details
-
DynamicPluginCommand
-
-
Method Details
-
execute
- Specified by:
execute
in classorg.bukkit.command.Command
-
getOwner
-
getRegisteredWith
-
setPermissions
-
getPermissions
-
getPlugin
public org.bukkit.plugin.Plugin getPlugin()- Specified by:
getPlugin
in interfaceorg.bukkit.command.PluginIdentifiableCommand
-
tabComplete
public List<String> tabComplete(org.bukkit.command.CommandSender sender, String alias, String[] args) throws IllegalArgumentException - Overrides:
tabComplete
in classorg.bukkit.command.Command
- Throws:
IllegalArgumentException
-
testPermissionSilent
public boolean testPermissionSilent(org.bukkit.command.CommandSender sender) - Overrides:
testPermissionSilent
in classorg.bukkit.command.Command
-