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());
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);
});
}