refactor: reorganize packages and replace LPSchematic with WorldEdit

Restructure core modules into subpackages (generator, schematic, config, session, etc.); add .schem/.nbt schematic pipeline, commands, adaptive stats skeleton, and bootstrap wiring.
This commit is contained in:
Loki 2026-06-01 14:02:48 +02:00
parent 6ba6e5137d
commit fd0ba2cc0e
203 changed files with 5652 additions and 2367 deletions

View file

@ -0,0 +1,26 @@
package dev.loki.loparkour.mode.base;
import dev.loki.loparkour.config.core.Config;
import dev.loki.loparkour.config.locale.Locales;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
/**
* Shared mode messages from locale files.
*/
public final class ModeMessages {
private ModeMessages() {
}
/**
* @return true if joining is allowed; otherwise sends {@code other.joining_disabled} and returns false
*/
public static boolean checkJoiningEnabled(@NotNull Player player) {
if (Config.CONFIG.getBoolean("joining")) {
return true;
}
Locales.send(player, "other.joining_disabled");
return false;
}
}