|
@@ -63,8 +63,16 @@ public class MWCommands extends BaseCommand {
|
|
sendHelpMessage(sender, "mw.debug", "/mw debug", "Show debug info.");
|
|
sendHelpMessage(sender, "mw.debug", "/mw debug", "Show debug info.");
|
|
sendHelpMessage(sender, "mw.restartall", "/mw restartall", "Restart all games.");
|
|
sendHelpMessage(sender, "mw.restartall", "/mw restartall", "Restart all games.");
|
|
|
|
|
|
|
|
+ sendHelpMessage(sender, "/mw version", "Show the plugin version.");
|
|
sendHelpMessage(sender, "mw.setup", "/mw setup <main|lobby|arena> ...", "Setup the MW locations or the lobby/arena locations.");
|
|
sendHelpMessage(sender, "mw.setup", "/mw setup <main|lobby|arena> ...", "Setup the MW locations or the lobby/arena locations.");
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Subcommand("version")
|
|
|
|
+ @CommandCompletion("@nothing")
|
|
|
|
+ public void versionCommand(CommandSender sender, String[] args) {
|
|
|
|
+
|
|
|
|
+ sender.sendMessage(Messages.getPrefix() + "Installed version: " + MissileWars.getInstance().version + " by RedstoneFuture & Butzlabben");
|
|
|
|
+ }
|
|
|
|
|
|
@Subcommand("listgames|list|games")
|
|
@Subcommand("listgames|list|games")
|
|
@CommandCompletion("@nothing")
|
|
@CommandCompletion("@nothing")
|
|
@@ -315,4 +323,8 @@ public class MWCommands extends BaseCommand {
|
|
}
|
|
}
|
|
sender.sendMessage(Messages.getPrefix() + command + " - " + description);
|
|
sender.sendMessage(Messages.getPrefix() + command + " - " + description);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ static void sendHelpMessage(CommandSender sender, String command, String description) {
|
|
|
|
+ sender.sendMessage(Messages.getPrefix() + command + " - " + description);
|
|
|
|
+ }
|
|
}
|
|
}
|