This commit is contained in:
loki 2026-03-01 22:43:37 +01:00
parent 547fe6d9bb
commit 8705cad578
118 changed files with 2714 additions and 4761 deletions

View file

@ -3,7 +3,7 @@ package dev.loki.loparkour.world;
import dev.loki.loparkour.LoParkour;
import dev.loki.loparkour.config.Option;
import dev.loki.loparkour.session.Session;
import dev.efnilite.vilib.util.Locations;
import dev.loki.loparkour.util.Locations;
import org.bukkit.Location;
import java.util.HashMap;

View file

@ -1,8 +1,12 @@
package dev.loki.loparkour.world;
import dev.lolib.worlds.VoidGenerator;
import org.bukkit.Bukkit;
import dev.loki.loparkour.LoParkour;
import dev.loki.loparkour.config.Config;
import dev.efnilite.vilib.util.VoidGenerator;
import dev.lolib.worlds.VoidGenerator;
import org.bukkit.*;
import java.io.File;
@ -29,7 +33,7 @@ public class World {
}
if (world != null) {
LoParkour.logging().warn("Crash detected! The parkour world loading twice is not usual behaviour. This only happens after a server crash.");
LoParkour.getPlugin().getLogger().warning("Crash detected! The parkour world loading twice is not usual behaviour. This only happens after a server crash.");
}
if (Config.CONFIG.getBoolean("world.delete-on-reload")) {
@ -52,7 +56,7 @@ public class World {
world = Bukkit.createWorld(creator);
} catch (Exception ex) {
LoParkour.logging().stack("Error while trying to create the parkour world", "delete the parkour world folder and restart the server", ex);
LoParkour.getPlugin().getLogger().severe("Error while trying to create the parkour world - delete the parkour world folder and restart the server - " + ex.getMessage());
}
}
@ -106,7 +110,7 @@ public class World {
.map(Path::toFile)
.forEach(File::delete);
} catch (Exception ex) {
LoParkour.logging().stack("Error while trying to delete the parkour world", ex);
LoParkour.getPlugin().getLogger().severe("Error while trying to delete the parkour world" + " - " + ex.getMessage());
}
}