Rework BlueMap claiming and expand ranks guilds chat and warps
This commit is contained in:
1 parent
434ed5338a
commit
6a2944a88e
68 files changed
+1453
-2500
No files matched your search
@@ -33,24 +33,13 @@ public final class Bridge {
|
||||
}));
|
||||
integration.startClaimSync();
|
||||
Path config = Path.of("config/scopenet.properties");
|
||||
if (Settings.liveMapEnabled(config)) integration.enableLiveMap(worldFolder());
|
||||
if (Settings.liveMapEnabled(config)) integration.enableLiveMap();
|
||||
} catch (Exception e) {
|
||||
// Throwing aborts startup; silently disabling an auth mod is unsafe.
|
||||
throw new IllegalStateException("SCOPENET cannot start: " + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
/** The level folder: `level-name` from server.properties, like the game itself reads it. */
|
||||
private static Path worldFolder() {
|
||||
Properties props = new Properties();
|
||||
try (var in = java.nio.file.Files.newBufferedReader(Path.of("server.properties"))) {
|
||||
props.load(in);
|
||||
} catch (java.io.IOException ignored) {
|
||||
// Fall back to the default level name.
|
||||
}
|
||||
return Path.of(props.getProperty("level-name", "world"));
|
||||
}
|
||||
|
||||
public static CompletableFuture<String> login(UUID uuid, String name, SocketAddress address) {
|
||||
Integration current = integration;
|
||||
if (current == null) return CompletableFuture.completedFuture(Integration.UNAVAILABLE);
|
||||
|
||||
Reference in new issue
Block a user