| 程序包 | 说明 |
|---|---|
| org.bukkit |
Bukkit的常用类.
|
| org.bukkit.plugin.java |
用Java编写的处理
插件的类. |
| 限定符和类型 | 方法和说明 |
|---|---|
static PluginCommand |
Bukkit.getPluginCommand(java.lang.String name)
用给定命令名或别名获取
PluginCommand. |
PluginCommand |
Server.getPluginCommand(java.lang.String name)
获取一个
PluginCommand通过给定的name或者别称
原文:Gets a PluginCommand with the given name or alias. |
| 限定符和类型 | 方法和说明 |
|---|---|
PluginCommand |
JavaPlugin.getCommand(java.lang.String name)
获取这个插件在plugin.yml里注册的命令
命令需要在
PluginDescriptionFile里已被注册
原文:
Gets the command with the given name, specific to this plugin. |