mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 09:59:42 -05:00
command.set/getDescription replaces a now deprecated set/getTooltip + javadocs
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
1 parent
5256cbb8a8
commit
2e97b270d4
2 files changed
+76
-10
No files matched your search
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user