Fix some more build errors

This commit is contained in:
2024-12-23 12:12:06 +01:00
parent ef19959eb2
commit 5e5bfedb52
7 changed files with 25 additions and 30 deletions
@@ -32,9 +32,7 @@ import de.steamwar.bausystem.features.tracer.TraceManager;
import de.steamwar.bausystem.features.tracer.TraceRecorder;
import de.steamwar.bausystem.features.world.BauScoreboard;
import de.steamwar.bausystem.linkage.specific.BauGuiItem;
import de.steamwar.bausystem.region.loader.PrototypeLoader;
import de.steamwar.bausystem.region.loader.RegionLoader;
import de.steamwar.bausystem.region.loader.Updater;
import de.steamwar.bausystem.region.RegionSystem;
import de.steamwar.bausystem.utils.ScoreboardElement;
import de.steamwar.bausystem.utils.TickListener;
import de.steamwar.bausystem.utils.TickManager;
@@ -95,6 +93,8 @@ public class BauSystem extends JavaPlugin {
instance = this;
SWUtils.setBausystem(instance);
RegionSystem.INSTANCE.load();
/*
try {
PrototypeLoader.load();
RegionLoader.load();
@@ -107,6 +107,7 @@ public class BauSystem extends JavaPlugin {
new Updater(PrototypeLoader.file, PrototypeLoader::load);
new Updater(RegionLoader.file, RegionLoader::load);
*/
SWCommandUtils.addValidator(Player.class, validator(Permission.BUILD));
SWCommandUtils.addValidator(CommandSender.class, validator(Permission.BUILD));
@@ -223,6 +224,7 @@ public class BauSystem extends JavaPlugin {
});
WorldData.write();
RegionSystem.INSTANCE.save();
Config.getInstance().saveAll();
}