geforkt von SteamWar/BungeeCore
Fix Typo
Dieser Commit ist enthalten in:
Ursprung
1879f74ead
Commit
86664ea399
@ -45,17 +45,17 @@ public class DevCommand extends BasicCommand {
|
|||||||
if (!(sender instanceof ProxiedPlayer)) {
|
if (!(sender instanceof ProxiedPlayer)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String[] devSever = DevServerDir.list();
|
String[] devServer = DevServerDir.list();
|
||||||
if (devSever == null || devSever.length == 0) {
|
if (devServer == null || devServer.length == 0) {
|
||||||
Message.send("DEV_NO_SERVER", sender);
|
Message.send("DEV_NO_SERVER", sender);
|
||||||
} else if (devSever.length == 1) {
|
} else if (devServer.length == 1) {
|
||||||
String[] server = devSever[0].split("\\.");
|
String[] server = devServer[0].split("\\.");
|
||||||
sendToServer((ProxiedPlayer) sender, server[0], Integer.parseInt(server[1]));
|
sendToServer((ProxiedPlayer) sender, server[0], Integer.parseInt(server[1]));
|
||||||
} else {
|
} else {
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
send(devSever, (ProxiedPlayer) sender, s -> s.equalsIgnoreCase(((ProxiedPlayer) sender).getDisplayName()), () -> Message.send("DEV_UNKNOWN_SERVER", sender));
|
send(devServer, (ProxiedPlayer) sender, s -> s.equalsIgnoreCase(((ProxiedPlayer) sender).getDisplayName()), () -> Message.send("DEV_UNKNOWN_SERVER", sender));
|
||||||
} else {
|
} else {
|
||||||
send(devSever, (ProxiedPlayer) sender, args[0]::equalsIgnoreCase, () -> Message.send("DEV_NO_SERVER", sender));
|
send(devServer, (ProxiedPlayer) sender, args[0]::equalsIgnoreCase, () -> Message.send("DEV_NO_SERVER", sender));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren