SteamWar/BungeeCore
Archiviert
13
2

Changing standard bau to 1.15

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-04-26 09:06:41 +02:00
Ursprung 9ca9fcf38f
Commit 4593705b97

Datei anzeigen

@ -24,14 +24,14 @@ public class BauCommand {
BungeeCore.log(p, e.getMessage()); BungeeCore.log(p, e.getMessage());
if(command.length == 1){ if(command.length == 1){
SubserverSystem.sendToBauServer(p, p.getUniqueId()); SubserverSystem.sendToBau15(p, p.getUniqueId());
return; return;
} }
switch(command[1].toLowerCase()){ switch(command[1].toLowerCase()){
case "15": case "12":
case "1.15": case "1.12":
SubserverSystem.sendToBau15(p, p.getUniqueId()); SubserverSystem.sendToBauServer(p, p.getUniqueId());
break; break;
case "addmember": case "addmember":
addmember(p, command); addmember(p, command);
@ -113,10 +113,10 @@ public class BauCommand {
return; return;
} }
if(command.length > 3 && command[3].equals("1.15")) if(command.length > 3 && command[3].equals("1.12"))
SubserverSystem.sendToBau15(p, worldOwner.getUuid());
else
SubserverSystem.sendToBauServer(p, worldOwner.getUuid()); SubserverSystem.sendToBauServer(p, worldOwner.getUuid());
else
SubserverSystem.sendToBau15(p, worldOwner.getUuid());
} }
private static void togglebuild(ProxiedPlayer p, String[] command){ private static void togglebuild(ProxiedPlayer p, String[] command){
@ -169,7 +169,7 @@ public class BauCommand {
private static void delete(ProxiedPlayer p, String[] command){ private static void delete(ProxiedPlayer p, String[] command){
if(command.length > 2){ 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]); BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§c Unbekannte Option: " + command[2]);
return; return;
} }
@ -182,8 +182,7 @@ public class BauCommand {
break; break;
} }
} }
SteamwarUser user = SteamwarUser.get(p.getUniqueId()); File directory = new File(BungeeCore.WORLD_FOLDER + p.getUniqueId().toString());
File directory = new File(BungeeCore.USERWORLDS15 + user.getId());
del(directory); del(directory);
}); });
}else{ }else{
@ -195,7 +194,8 @@ public class BauCommand {
break; 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); del(directory);
}); });
} }