本文整理了Java中org.bukkit.command.Command.setDescription()
方法的一些代码示例,展示了Command.setDescription()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Command.setDescription()
方法的具体详情如下:
包路径:org.bukkit.command.Command
类名称:Command
方法名:setDescription
[英]Sets a brief description of this command. Defining a description in the PluginDescriptionFile#getCommands() (under the ``description' node) is equivalent to this method. [中]设置此命令的简要说明。在PluginDescriptionFile#getCommands()中(在“
description`”节点下)定义描述与此方法等效。
代码示例来源:origin: Bukkit/Bukkit
newCmd.setDescription(description.toString());
代码示例来源:origin: EngineHub/CommandHelper
@Override
public MCCommand setDescription(String desc) {
cmd.setDescription(desc);
return this;
}
代码示例来源:origin: stackoverflow.com
String description = getConfig().getString("core.commands." + cmd + ".description");
if (!description.isEmpty())
{
Command command = getCommand(cmd); // Or whatever type it is
command.setDescription(description);
}
else
{
getLogger().warning("NO description assigned to: " + cmd);
}
代码示例来源:origin: BentoBoxWorld/BentoBox
super.setDescription(description);
return this;
代码示例来源:origin: SpigotMC/Spigot-API
newCmd.setDescription(description.toString());
内容来源于网络,如有侵权,请联系作者删除!