public class DynamicPluginCommand
extends org.bukkit.command.Command
implements org.bukkit.command.PluginIdentifiableCommand
Command attached to a plugin| Modifier and Type | Field and Description |
|---|---|
protected org.bukkit.command.CommandExecutor |
owner |
protected org.bukkit.plugin.Plugin |
owningPlugin |
protected String[] |
permissions |
protected Object |
registeredWith |
| Constructor and Description |
|---|
DynamicPluginCommand(String[] aliases,
String desc,
String usage,
org.bukkit.command.CommandExecutor owner,
Object registeredWith,
org.bukkit.plugin.Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(org.bukkit.command.CommandSender sender,
String label,
String[] args) |
Object |
getOwner() |
String[] |
getPermissions() |
org.bukkit.plugin.Plugin |
getPlugin() |
Object |
getRegisteredWith() |
void |
setPermissions(String[] permissions) |
boolean |
testPermissionSilent(org.bukkit.command.CommandSender sender) |
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setPermission, setPermissionMessage, setUsage, tabComplete, tabComplete, testPermission, toString, unregisterprotected final org.bukkit.command.CommandExecutor owner
protected final Object registeredWith
protected final org.bukkit.plugin.Plugin owningPlugin
protected String[] permissions
public boolean execute(org.bukkit.command.CommandSender sender,
String label,
String[] args)
execute in class org.bukkit.command.Commandpublic Object getOwner()
public Object getRegisteredWith()
public void setPermissions(String[] permissions)
public String[] getPermissions()
public org.bukkit.plugin.Plugin getPlugin()
getPlugin in interface org.bukkit.command.PluginIdentifiableCommandpublic boolean testPermissionSilent(org.bukkit.command.CommandSender sender)
testPermissionSilent in class org.bukkit.command.CommandCopyright © 2010-2014. All Rights Reserved.