command.set/getDescription replaces a now deprecated set/getTooltip + javadocs

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-02-28 11:42:09 +00:00
parent 5256cbb8a8
commit 2e97b270d4
2 changed files with 76 additions and 10 deletions

View File

@@ -103,7 +103,7 @@ public final class SimpleCommandMap implements CommandMap {
public VersionCommand(String name, Server server) {
super(name);
this.server = server;
this.tooltip = "Gets the version of this server including any plugins in use";
this.description = "Gets the version of this server including any plugins in use";
this.usageMessage = "/version [plugin name]";
this.setAliases(Arrays.asList("ver", "about"));
}
@@ -184,7 +184,7 @@ public final class SimpleCommandMap implements CommandMap {
public ReloadCommand(String name, Server server) {
super(name);
this.server = server;
this.tooltip = "Reloads the server configuration and plugins";
this.description = "Reloads the server configuration and plugins";
this.usageMessage = "/reload";
this.setAliases(Arrays.asList("rl"));
}
@@ -208,7 +208,7 @@ public final class SimpleCommandMap implements CommandMap {
public PluginsCommand(String name, Server server) {
super(name);
this.server = server;
this.tooltip = "Gets a list of plugins running on the server";
this.description = "Gets a list of plugins running on the server";
this.usageMessage = "/plugins";
this.setAliases(Arrays.asList("pl"));
}