i hate you
This commit is contained in:
@ -55,6 +55,11 @@ public class ArenaManager {
|
||||
List<String> diamondGenerators = section.getStringList(name + ".diamond-generators");
|
||||
List<String> emeraldGenerators = section.getStringList(name + ".emerald-generators");
|
||||
|
||||
String teamAshop = section.getString(name + ".teamAshop");
|
||||
String teamBshop = section.getString(name + ".teamBshop");
|
||||
String teamAupgrades = section.getString(name + ".teamAupgrades");
|
||||
String teamBupgrades = section.getString(name + ".teamAupgrades");
|
||||
|
||||
CustomLocation spawnA = CustomLocation.stringToLocation(a);
|
||||
CustomLocation spawnB = CustomLocation.stringToLocation(b);
|
||||
CustomLocation locMin = CustomLocation.stringToLocation(min);
|
||||
@ -79,6 +84,11 @@ public class ArenaManager {
|
||||
emeraldGeneratorLocations.add(CustomLocation.stringToLocation(location));
|
||||
}
|
||||
|
||||
CustomLocation locTeamAshop = CustomLocation.stringToLocation(teamAshop);
|
||||
CustomLocation locTeamBshop = CustomLocation.stringToLocation(teamBshop);
|
||||
CustomLocation locTeamAupgrades = CustomLocation.stringToLocation(teamAupgrades);
|
||||
CustomLocation locTeamBupgrades = CustomLocation.stringToLocation(teamBupgrades);
|
||||
|
||||
List<CopiedArena> copiedArenas = new ArrayList<>();
|
||||
ConfigurationSection copiedSection = section.getConfigurationSection(name + ".copiedArenas");
|
||||
if (copiedSection != null) {
|
||||
@ -96,6 +106,11 @@ public class ArenaManager {
|
||||
List<String> copyDiamondGenerators = copiedSection.getStringList(copy + ".diamond-generators");
|
||||
List<String> copyEmeraldGenerators = copiedSection.getStringList(copy + ".emerald-generators");
|
||||
|
||||
String copyTeamAshop = section.getString(copy + ".teamAshop");
|
||||
String copyTeamBshop = section.getString(copy + ".teamBshop");
|
||||
String copyTeamAupgrades = section.getString(copy + ".teamAupgrades");
|
||||
String copyTeamBupgrades = section.getString(copy + ".teamAupgrades");
|
||||
|
||||
CustomLocation copySpawnA = CustomLocation.stringToLocation(copyA);
|
||||
CustomLocation copySpawnB = CustomLocation.stringToLocation(copyB);
|
||||
CustomLocation copyLocMin = CustomLocation.stringToLocation(copyMin);
|
||||
@ -120,6 +135,11 @@ public class ArenaManager {
|
||||
copyEmeraldGeneratorLocations.add(CustomLocation.stringToLocation(location));
|
||||
}
|
||||
|
||||
CustomLocation copyLocTeamAshop = CustomLocation.stringToLocation(copyTeamAshop);
|
||||
CustomLocation copyLocTeamBshop = CustomLocation.stringToLocation(copyTeamBshop);
|
||||
CustomLocation copyLocTeamAupgrades = CustomLocation.stringToLocation(copyTeamAupgrades);
|
||||
CustomLocation copyLocTeamBupgrades = CustomLocation.stringToLocation(copyTeamBupgrades);
|
||||
|
||||
CopiedArena copiedArena = new CopiedArena(
|
||||
copySpawnA,
|
||||
copySpawnB,
|
||||
@ -132,7 +152,12 @@ public class ArenaManager {
|
||||
|
||||
copyTeamGeneratorLocations,
|
||||
copyDiamondGeneratorLocations,
|
||||
copyEmeraldGeneratorLocations
|
||||
copyEmeraldGeneratorLocations,
|
||||
|
||||
copyLocTeamAshop,
|
||||
copyLocTeamBshop,
|
||||
copyLocTeamAupgrades,
|
||||
copyLocTeamBupgrades
|
||||
);
|
||||
|
||||
this.plugin.getChunkClearingManager().copyArena(copiedArena);
|
||||
@ -164,6 +189,11 @@ public class ArenaManager {
|
||||
diamondGeneratorLocations,
|
||||
emeraldGeneratorLocations,
|
||||
|
||||
locTeamAshop,
|
||||
locTeamBshop,
|
||||
locTeamAupgrades,
|
||||
locTeamBupgrades,
|
||||
|
||||
enabled
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user