From 4593705b979be8f7b6e9e9aae5cef1e2a33d7081 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 26 Apr 2020 09:06:41 +0200 Subject: [PATCH] Changing standard bau to 1.15 Signed-off-by: Lixfel --- .../bungeecore/commands/BauCommand.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index 3dd26286..90cba425 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -24,14 +24,14 @@ public class BauCommand { BungeeCore.log(p, e.getMessage()); if(command.length == 1){ - SubserverSystem.sendToBauServer(p, p.getUniqueId()); + SubserverSystem.sendToBau15(p, p.getUniqueId()); return; } switch(command[1].toLowerCase()){ - case "15": - case "1.15": - SubserverSystem.sendToBau15(p, p.getUniqueId()); + case "12": + case "1.12": + SubserverSystem.sendToBauServer(p, p.getUniqueId()); break; case "addmember": addmember(p, command); @@ -113,10 +113,10 @@ public class BauCommand { return; } - if(command.length > 3 && command[3].equals("1.15")) - SubserverSystem.sendToBau15(p, worldOwner.getUuid()); - else + if(command.length > 3 && command[3].equals("1.12")) SubserverSystem.sendToBauServer(p, worldOwner.getUuid()); + else + SubserverSystem.sendToBau15(p, worldOwner.getUuid()); } private static void togglebuild(ProxiedPlayer p, String[] command){ @@ -169,7 +169,7 @@ public class BauCommand { private static void delete(ProxiedPlayer p, String[] command){ if(command.length > 2){ - if(!command[2].equals("1.15")){ + if(!command[2].equals("1.12")){ BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§c Unbekannte Option: " + command[2]); return; } @@ -182,8 +182,7 @@ public class BauCommand { break; } } - SteamwarUser user = SteamwarUser.get(p.getUniqueId()); - File directory = new File(BungeeCore.USERWORLDS15 + user.getId()); + File directory = new File(BungeeCore.WORLD_FOLDER + p.getUniqueId().toString()); del(directory); }); }else{ @@ -195,7 +194,8 @@ public class BauCommand { break; } } - File directory = new File(BungeeCore.WORLD_FOLDER + p.getUniqueId().toString()); + SteamwarUser user = SteamwarUser.get(p.getUniqueId()); + File directory = new File(BungeeCore.USERWORLDS15 + user.getId()); del(directory); }); }