SteamWar/BungeeCore
Archiviert
13
2

Merge pull request 'Add english aliases' (#422) from multilingAliases into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #422
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Lixfel 2022-08-23 17:22:32 +02:00
Commit b76164ac8d
2 geänderte Dateien mit 17 neuen und 18 gelöschten Zeilen

Datei anzeigen

@ -36,17 +36,17 @@ public class HelpCommand extends BasicCommand {
if (args.length < 1) { if (args.length < 1) {
printPage(sender, ClickEvent.Action.RUN_COMMAND, printPage(sender, ClickEvent.Action.RUN_COMMAND,
"HELP_LOBBY", "/l", "HELP_LOBBY", "/l",
"HELP_BAU", "/bau", "HELP_BAU", "/build",
"HELP_BAUSERVER", "/help bau", "HELP_BAUSERVER", "/help build",
"HELP_FIGHT", "/fight", "HELP_FIGHT", "/fight",
"HELP_CHALLENGE", "/challenge", "HELP_CHALLENGE", "/challenge",
"HELP_HISTORIC", "/historic", "HELP_HISTORIC", "/historic",
"HELP_TEAM", "/team", "HELP_TEAM", "/team",
"HELP_JOIN", "/join", "HELP_JOIN", "/join",
"HELP_LOCAL", "/local"); "HELP_LOCAL", "/local");
}else if (args[0].equalsIgnoreCase("bauserver")) { }else if (args[0].equalsIgnoreCase("buildserver")) {
sendBauHelp(sender); sendBauHelp(sender);
}else if (args[0].equalsIgnoreCase("bau")) { }else if (args[0].equalsIgnoreCase("build")) {
bauHelpGroup(sender, args); bauHelpGroup(sender, args);
} }
} }
@ -86,22 +86,22 @@ public class HelpCommand extends BasicCommand {
private static void sendBauHelpGroup(ChatSender sender) { private static void sendBauHelpGroup(ChatSender sender) {
printPage(sender, ClickEvent.Action.RUN_COMMAND, printPage(sender, ClickEvent.Action.RUN_COMMAND,
"HELP_BAU_GROUP_ADMIN", "/help bau admin", "HELP_BAU_GROUP_ADMIN", "/help build admin",
"HELP_BAU_GROUP_WORLD", "/help bau world", "HELP_BAU_GROUP_WORLD", "/help build world",
"HELP_BAU_GROUP_PLAYER", "/help bau player", "HELP_BAU_GROUP_PLAYER", "/help build player",
"HELP_BAU_GROUP_WE", "/help bau we", "HELP_BAU_GROUP_WE", "/help build we",
"HELP_BAU_GROUP_OTHER", "/help bau other"); "HELP_BAU_GROUP_OTHER", "/help build other");
} }
static void sendBauHelp(ChatSender sender) { static void sendBauHelp(ChatSender sender) {
printPage(sender, ClickEvent.Action.SUGGEST_COMMAND, printPage(sender, ClickEvent.Action.SUGGEST_COMMAND,
"HELP_BAU_TP", "/bau tp ", "HELP_BAU_TP", "/build tp ",
"HELP_BAU_ADDMEMBER", "/bau addmember ", "HELP_BAU_ADDMEMBER", "/build addmember ",
"HELP_BAU_DELMEMBER", "/bau delmember ", "HELP_BAU_DELMEMBER", "/build delmember ",
"HELP_BAU_TOGGLEWE", "/bau togglewe ", "HELP_BAU_TOGGLEWE", "/build togglewe ",
"HELP_BAU_TOGGLEWORLD", "/bau toggleworld ", "HELP_BAU_TOGGLEWORLD", "/build toggleworld ",
"HELP_BAU_DELETE", "/bau delete ", "HELP_BAU_DELETE", "/build delete ",
"HELP_BAU_TESTARENA", "/bau testarena "); "HELP_BAU_TESTARENA", "/build testarena ");
} }
private static void printPage(ChatSender sender, ClickEvent.Action action, String... args) { private static void printPage(ChatSender sender, ClickEvent.Action action, String... args) {

Datei anzeigen

@ -21,13 +21,12 @@ package de.steamwar.bungeecore.commands;
import de.steamwar.bungeecore.Message; import de.steamwar.bungeecore.Message;
import de.steamwar.command.SWCommand; import de.steamwar.command.SWCommand;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.ClickEvent; import net.md_5.bungee.api.chat.ClickEvent;
import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.api.connection.ProxiedPlayer;
public class RegelnCommand extends SWCommand { public class RegelnCommand extends SWCommand {
public RegelnCommand() { public RegelnCommand() {
super("regeln"); super("regeln", null, "rules");
} }
@Register @Register