mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-03 14:14:43 +02:00
Minor cleanup in favor of Java 16
- Addressing a few command deprecations during the major release superseded by toggles - Don't swallow SQL warnings in loggers behind debug, as it's often set to false - Deleted JavaVersionCheck, it's part of ServerLib.
This commit is contained in:
@ -135,7 +135,7 @@ public class BukkitSetupUtils extends SetupUtils {
|
||||
PlotAreaType type = builder.plotAreaType();
|
||||
String worldPath = "worlds." + builder.worldName();
|
||||
switch (type) {
|
||||
case PARTIAL: {
|
||||
case PARTIAL -> {
|
||||
if (builder.areaName() != null) {
|
||||
if (!this.worldConfiguration.contains(worldPath)) {
|
||||
this.worldConfiguration.createSection(worldPath);
|
||||
@ -177,9 +177,8 @@ public class BukkitSetupUtils extends SetupUtils {
|
||||
if (gen != null && gen.isFull()) {
|
||||
builder.generatorName(null);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case AUGMENTED: {
|
||||
case AUGMENTED -> {
|
||||
if (!builder.plotManager().endsWith(":single")) {
|
||||
if (!this.worldConfiguration.contains(worldPath)) {
|
||||
this.worldConfiguration.createSection(worldPath);
|
||||
@ -207,9 +206,8 @@ public class BukkitSetupUtils extends SetupUtils {
|
||||
if (gen != null && gen.isFull()) {
|
||||
builder.generatorName(null);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case NORMAL: {
|
||||
case NORMAL -> {
|
||||
if (steps.length != 0) {
|
||||
if (!this.worldConfiguration.contains(worldPath)) {
|
||||
this.worldConfiguration.createSection(worldPath);
|
||||
@ -220,7 +218,6 @@ public class BukkitSetupUtils extends SetupUtils {
|
||||
worldSection.set(step.getConstant(), step.getValue());
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user