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:
parent
6ba6e5137d
commit
fd0ba2cc0e
203 changed files with 5652 additions and 2367 deletions
26
src/main/java/dev/loki/loparkour/mode/base/ModeMessages.java
Normal file
26
src/main/java/dev/loki/loparkour/mode/base/ModeMessages.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue