Fabric 1.20.1: server features (commands, LuckPerms, Placeholder API, economy API, client link) and client mod (HUD, editor, shop and market windows); Paper client link; docs and examples
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DjMbLQujBHunCCu5GpsHaT
This commit is contained in:
43 files changed
+2112
-42
No files matched your search
@@ -16,6 +16,12 @@ public final class Bridge {
|
||||
private static int mapTicks;
|
||||
private Bridge() {}
|
||||
|
||||
/** The running integration, or null before the server has started. */
|
||||
public static Integration integration() { return integration; }
|
||||
|
||||
/** Lets a permissions system (LuckPerms) say who may build in other guilds' claims. Default: nobody. */
|
||||
public static volatile java.util.function.Predicate<ServerPlayer> claimBypass = player -> false;
|
||||
|
||||
public static void start(MinecraftServer server) {
|
||||
try {
|
||||
integration = new Integration(Settings.load(Path.of("config/scopenet.properties")),
|
||||
@@ -103,6 +109,7 @@ public final class Bridge {
|
||||
Integration current = integration;
|
||||
if (current == null) return false;
|
||||
if (!current.settings().guildsEnabled() || !current.settings().landClaimingEnabled()) return true;
|
||||
if (claimBypass.test(player)) return true;
|
||||
String dimension = Compat.dimension(player);
|
||||
ChunkCheckResult check = current.checkChunk(dimension, pos.getX() >> 4, pos.getZ() >> 4, player.getUUID());
|
||||
if (check.allowed()) return true;
|
||||
|
||||
Reference in new issue
Block a user