类 PluginsCommand
java.lang.Object
org.bukkit.command.Command
org.bukkit.command.defaults.BukkitCommand
org.bukkit.command.defaults.PluginsCommand
-
字段概要
从类继承的字段 org.bukkit.command.Command
description, usageMessage
-
构造器概要
-
方法概要
修饰符和类型方法说明boolean
execute
(CommandSender sender, String currentAlias, String[] args) 执行命令.tabComplete
(CommandSender sender, String alias, String[] args) 执行此命令的tab补全时返回选项列表.从类继承的方法 org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
构造器详细资料
-
PluginsCommand
-
-
方法详细资料
-
execute
从类复制的说明:Command
执行命令.原文:Executes the command, returning its success
-
tabComplete
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException 从类复制的说明:Command
执行此命令的tab补全时返回选项列表.原文:Executed on tab completion for this command, returning a list of options the player can tab through.
- 覆盖:
tabComplete
在类中Command
- 参数:
sender
- 执行此命令的对象alias
- 被使用的别名args
- 传递给此命令的所有参数,用' '分割- 返回:
- 指定参数的tab补全项列表.这将永远不会为null. 列表可能是不可变的.
- 抛出:
IllegalArgumentException
- 如果sender, alias, args任意一参数为null
-