mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-11-27 00:05:07 +00:00
config harsher verification + send world names to editor api
This commit is contained in:
1 parent
aeeffc9e1b
commit
b878c992f9
20 files changed
+527
-6
No files matched your search
+17
-1
@@ -19,7 +19,7 @@ There are no inbound Minecraft connections and no automatic polling. Allow outbo
|
||||
- Session expiry preserves the browser text for download. The personal config library and Discord login are not implemented yet.
|
||||
- Tokens are consumed atomically when downloaded. If a response is lost, local validation fails, or the player disconnects before application, save again for a fresh token. The plugin does not retry writes. Minecraft reports the apply outcome; the website does not report generated commands as applied.
|
||||
- The player running editorsync must still be online and hold `betterrtp.editor` at apply time. Restarting/disabling the plugin discards its in-memory session, so old tokens cannot be applied by that plugin instance after restart.
|
||||
- Invalid content is rejected before any file change. Validation preserves the existing setting structure and types, checks selected numeric ranges, blocks Language-File changes and unsafe Bukkit YAML constructs, and limits config size to 128 KiB. This is conservative validation, not a complete schema for every integration.
|
||||
- Invalid content is rejected before any file change. Validation preserves fixed setting names and types, permits typed add/remove/rename operations in supported collections, checks selected numeric ranges, blocks Language-File changes and unsafe Bukkit YAML constructs, and limits config size to 128 KiB. This is conservative validation, not a complete schema for every integration.
|
||||
- Intervening edits to the Minecraft config do not block syncing: applying a saved version can overwrite those edits. A backup of the current file is created in `plugins/BetterRTP/editor-backups/`; rotate backups as appropriate.
|
||||
- If writing succeeds but reload fails, the new file stays in place and a reload error is reported. There is no automatic rollback. Check Minecraft's console and reload after resolving the failure.
|
||||
- The private plugin-session capability binds redemption to the original session; no server label is collected or used for authorization.
|
||||
@@ -39,3 +39,19 @@ The address is internal JAR build metadata, not a server configuration or enviro
|
||||
Run `mvn -f tests/editor/pom.xml test` for configuration validation/file-write tests and `mvn package -Pstaging` for the full staging plugin. The web repository's `pnpm test` exercises version isolation, atomic single-use redemption, server binding, independent expiry, cancellation, validation, and limits against embedded PostgreSQL.
|
||||
|
||||
Before production use, test the complete flow on the staging Minecraft server, including permission denial, permission loss, disconnect, expiry, repeated saves, intervening local changes, reload errors, restart, and Folia scheduling if applicable. Local automated checks do not substitute for this staging run.
|
||||
|
||||
## Collection edits
|
||||
|
||||
The shared web form now treats BlacklistedBlocks, DisabledWorlds and Biomes as editable lists; Overrides and WorldType as named mappings; CustomWorlds as named world settings; and PermissionGroup.Groups as groups containing named world settings. Empty lists are editable. World settings may be omitted to inherit defaults.
|
||||
|
||||
EditorConfig validates these dynamic entries by name and type, rejects duplicate names and unsupported new setting keys, and validates effective radius/height ranges against Default. Existing unknown settings under an unchanged world name retain their original schema. Other sections keep their existing fixed schema, and Language-File still requires a local edit.
|
||||
|
||||
Update both the website and plugin JAR before using structural list edits through editorsync. Older JARs reject renamed/added/removed world and group entries. The protocol remains version 2 and there is no database migration. Matching collection fixtures run in both repositories; this does not replace a deployed sync check.
|
||||
|
||||
## Available worlds metadata
|
||||
|
||||
Session creation sends a `worlds` string array captured from `Bukkit.getWorlds()` on the command thread before the HTTP worker runs. It lists loaded worlds at that moment; it does not read folder names, server name, or MOTD. The website stores this immutable session metadata separately from YAML and uses it for world suggestions and availability notices.
|
||||
|
||||
Users may add/remove names from their editor suggestions, but this never creates/deletes actual worlds or changes the server-reported snapshot. Configs may intentionally reference unloaded/future worlds, so availability warnings do not block syncing. Open a fresh session to refresh reported worlds.
|
||||
|
||||
Deploy the website migration adding `EditorSession.worlds`, then update the JAR and create a new session. Older protocol 2 plugins/sessions omit this optional field and continue working with unverified config-derived world names. World metadata does not grant additional sync authority.
|
||||
@@ -1,6 +1,8 @@
|
||||
package me.SuperRonanCraft.BetterRTP.references.web.editor;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonPrimitive;
|
||||
import com.google.gson.JsonParser;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
@@ -63,6 +65,9 @@ public final class EditorBridge {
|
||||
byte[] bytes = EditorConfig.read(configPath());
|
||||
String content = new String(bytes, StandardCharsets.UTF_8); EditorConfig.parse(content);
|
||||
Session session = new Session(content, bytes, sender instanceof Player ? ((Player) sender).getUniqueId() : null);
|
||||
// Snapshot loaded worlds on the command thread, before starting HTTP work.
|
||||
List<String> worlds = new ArrayList<>();
|
||||
for (org.bukkit.World world : Bukkit.getWorlds()) worlds.add(world.getName());
|
||||
current = session;
|
||||
sender.sendMessage("§7Creating a private BetterRTP editor session…");
|
||||
worker.execute(() -> {
|
||||
@@ -70,6 +75,9 @@ public final class EditorBridge {
|
||||
JsonObject body = new JsonObject(); body.addProperty("protocol", 2);
|
||||
body.addProperty("playerId", session.player == null ? null : session.player.toString());
|
||||
body.addProperty("configFile", "config.yml");
|
||||
JsonArray availableWorlds = new JsonArray();
|
||||
for (String world : worlds) availableWorlds.add(new JsonPrimitive(world));
|
||||
body.add("worlds", availableWorlds);
|
||||
body.addProperty("version", plugin.getDescription().getVersion()); body.addProperty("content", content);
|
||||
JsonObject result = request(session, "POST", "/api/editor/sessions", body);
|
||||
session.pluginToken = result.get("pluginToken").getAsString();
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.io.IOException;
|
||||
import java.util.*;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** Validation is deliberately stricter than the local file loader. No new schema keys in protocol 1. */
|
||||
/** Fixed settings retain their schema; supported collections allow typed named entries. */
|
||||
public final class EditorConfig {
|
||||
public static final int MAX_BYTES = 128 * 1024;
|
||||
private static final Pattern TOKENS = Pattern.compile("(^|[\\s\\[\\]{},])[!&*]", Pattern.MULTILINE);
|
||||
@@ -38,21 +38,28 @@ public final class EditorConfig {
|
||||
YamlConfiguration before = parse(original), after = parse(edited);
|
||||
if (!Objects.equals(before.get("Language-File"), after.get("Language-File")))
|
||||
throw new IOException("Change Language-File locally, not through the web editor.");
|
||||
compare(before, after, "config", 0);
|
||||
compare(before, after, "config", 0, (Map<?, ?>) normalize(after.get("Default")));
|
||||
}
|
||||
|
||||
private static Object normalize(Object value) {
|
||||
return value instanceof ConfigurationSection ? ((ConfigurationSection) value).getValues(false) : value;
|
||||
}
|
||||
|
||||
private static void compare(Object oldValue, Object newValue, String path, int depth) throws IOException {
|
||||
private static void compare(Object oldValue, Object newValue, String path, int depth, Map<?, ?> defaults) throws IOException {
|
||||
if (depth > 32) throw new IOException("Configuration nesting is too deep.");
|
||||
oldValue = normalize(oldValue); newValue = normalize(newValue);
|
||||
if (Arrays.asList("config.BlacklistedBlocks", "config.DisabledWorlds", "config.Default.Biomes").contains(path)) {
|
||||
stringList(newValue, path); return;
|
||||
}
|
||||
if (Arrays.asList("config.Overrides", "config.WorldType", "config.CustomWorlds", "config.PermissionGroup.Groups").contains(path)) {
|
||||
String kind = path.equals("config.Overrides") ? "overrides" : path.equals("config.WorldType") ? "types" : path.equals("config.CustomWorlds") ? "worlds" : "groups";
|
||||
named(oldValue, newValue, path, kind, depth, defaults); return;
|
||||
}
|
||||
if (oldValue instanceof Map) {
|
||||
if (!(newValue instanceof Map)) throw new IOException("Expected section: " + path);
|
||||
Map<?, ?> oldMap = (Map<?, ?>) oldValue, newMap = (Map<?, ?>) newValue;
|
||||
if (!oldMap.keySet().equals(newMap.keySet())) throw new IOException("Keep existing setting names: " + path);
|
||||
for (Object key : oldMap.keySet()) compare(oldMap.get(key), newMap.get(key), path + "." + key, depth + 1);
|
||||
for (Object key : oldMap.keySet()) compare(oldMap.get(key), newMap.get(key), path + "." + key, depth + 1, defaults);
|
||||
checkRange(newMap, "MinRadius", "MaxRadius", path, true);
|
||||
checkRange(newMap, "MinY", "MaxY", path, false);
|
||||
} else if (oldValue instanceof List) {
|
||||
@@ -63,7 +70,7 @@ public final class EditorConfig {
|
||||
if (structured && oldList.size() != newList.size()) throw new IOException("Keep existing world/group entries: " + path);
|
||||
for (int i = 0; i < newList.size(); i++) {
|
||||
Object baseline = structured ? oldList.get(i) : oldList.isEmpty() ? "" : oldList.get(0);
|
||||
compare(baseline, newList.get(i), path + "[" + i + "]", depth + 1);
|
||||
compare(baseline, newList.get(i), path + "[" + i + "]", depth + 1, defaults);
|
||||
}
|
||||
} else if (oldValue instanceof Number) {
|
||||
if (!(newValue instanceof Number)) throw new IOException("Expected number: " + path);
|
||||
@@ -84,6 +91,78 @@ public final class EditorConfig {
|
||||
} else if (!Objects.equals(oldValue, newValue)) throw new IOException("Unsupported setting: " + path);
|
||||
}
|
||||
|
||||
private static boolean validName(String value) {
|
||||
return !value.trim().isEmpty() && value.equals(value.trim()) && value.length() <= 100 && !Pattern.compile("[\\x00-\\x1f]").matcher(value).find();
|
||||
}
|
||||
|
||||
private static void stringList(Object value, String path) throws IOException {
|
||||
if (!(value instanceof List) || ((List<?>) value).size() > 1000) throw new IOException("Expected text list: " + path);
|
||||
for (Object item : (List<?>) value)
|
||||
if (!(item instanceof String) || ((String) item).trim().isEmpty()) throw new IOException("Expected non-empty text: " + path);
|
||||
}
|
||||
|
||||
private static Map<String, Object> entries(Object value, String path) throws IOException {
|
||||
if (!(value instanceof List) || ((List<?>) value).size() > 1000) throw new IOException("Expected named list: " + path);
|
||||
Map<String, Object> result = new LinkedHashMap<>();
|
||||
for (Object item : (List<?>) value) {
|
||||
item = normalize(item);
|
||||
if (!(item instanceof Map) || ((Map<?, ?>) item).isEmpty()) throw new IOException("Expected named entry: " + path);
|
||||
for (Map.Entry<?, ?> entry : ((Map<?, ?>) item).entrySet()) {
|
||||
if (!(entry.getKey() instanceof String) || !validName((String) entry.getKey()) || result.containsKey(entry.getKey()))
|
||||
throw new IOException("Invalid or duplicate name: " + path);
|
||||
result.put((String) entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private static Map<String, Object> worldSettings(boolean group) {
|
||||
Map<String, Object> result = new LinkedHashMap<>();
|
||||
for (String name : Arrays.asList("MaxRadius", "MinRadius", "CenterX", "CenterZ", "Price", "MaxY", "MinY", "Cooldown")) result.put(name, 0);
|
||||
result.put("UseWorldBorder", false); result.put("RTPOnDeath", false);
|
||||
result.put("Shape", "square"); result.put("Biomes", Collections.emptyList());
|
||||
if (group) result.put("Priority", 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
private static void named(Object before, Object after, String path, String kind, int depth, Map<?, ?> defaults) throws IOException {
|
||||
if (depth > 32) throw new IOException("Configuration nesting is too deep.");
|
||||
Map<String, Object> old = entries(before, path), next = entries(after, path);
|
||||
for (Map.Entry<String, Object> entry : next.entrySet()) {
|
||||
String key = entry.getKey(), at = path + "." + key;
|
||||
Object value = normalize(entry.getValue());
|
||||
if (kind.equals("overrides")) {
|
||||
if (!(value instanceof String) || !validName((String) value)) throw new IOException("Invalid target world: " + at);
|
||||
} else if (kind.equals("types")) {
|
||||
if (!(value instanceof String) || !Arrays.asList("NORMAL", "NETHER").contains(((String) value).toUpperCase(Locale.ROOT)))
|
||||
throw new IOException("World type must be NORMAL or NETHER: " + at);
|
||||
} else if (kind.equals("groups")) {
|
||||
named(old.containsKey(key) ? old.get(key) : Collections.emptyList(), value, at, "groupWorlds", depth + 1, defaults);
|
||||
} else {
|
||||
if (!(value instanceof Map)) throw new IOException("Expected world settings: " + at);
|
||||
Map<?, ?> settings = (Map<?, ?>) value;
|
||||
Object previousValue = normalize(old.get(key));
|
||||
Map<?, ?> previous = previousValue instanceof Map ? (Map<?, ?>) previousValue : Collections.emptyMap();
|
||||
Map<String, Object> allowed = worldSettings(kind.equals("groupWorlds"));
|
||||
for (Map.Entry<?, ?> field : settings.entrySet()) {
|
||||
if (!(field.getKey() instanceof String)) throw new IOException("Invalid setting name: " + at);
|
||||
String name = (String) field.getKey(); Object val = field.getValue();
|
||||
if (name.equals("Biomes")) stringList(val, at + ".Biomes");
|
||||
else if (allowed.containsKey(name)) {
|
||||
compare(allowed.get(name), val, at + "." + name, depth + 1, defaults);
|
||||
if (name.equals("Cooldown") && ((Number) val).doubleValue() < 0) throw new IOException("Negative cooldown: " + at);
|
||||
} else if (previous.containsKey(name)) compare(previous.get(name), val, at + "." + name, depth + 1, defaults);
|
||||
else throw new IOException("Unsupported world setting: " + at + "." + name);
|
||||
}
|
||||
for (Object name : previous.keySet())
|
||||
if (!allowed.containsKey(name) && !settings.containsKey(name)) throw new IOException("Keep existing setting: " + at + "." + name);
|
||||
Map<Object, Object> effective = new LinkedHashMap<>(); effective.putAll(defaults); effective.putAll(settings);
|
||||
checkRange(effective, "MinRadius", "MaxRadius", at, true);
|
||||
checkRange(effective, "MinY", "MaxY", at, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void checkRange(Map<?, ?> map, String min, String max, String path, boolean strict) throws IOException {
|
||||
if (map.get(min) instanceof Number && map.get(max) instanceof Number) {
|
||||
double a = ((Number) map.get(min)).doubleValue(), b = ((Number) map.get(max)).doubleValue();
|
||||
|
||||
@@ -61,6 +61,20 @@ public class EditorConfigTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
@Test public void validatesCollectionFixtures() throws Exception {
|
||||
Path root = Paths.get("src/test/resources/collections");
|
||||
String baseline = new String(Files.readAllBytes(root.resolve("baseline.yml")), StandardCharsets.UTF_8);
|
||||
try (java.util.stream.Stream<Path> files = Files.list(root)) {
|
||||
for (Path file : (Iterable<Path>) files::iterator) {
|
||||
String value = new String(Files.readAllBytes(file), StandardCharsets.UTF_8);
|
||||
if (file.getFileName().toString().startsWith("invalid-")) {
|
||||
try { EditorConfig.validate(baseline, value); fail("Expected rejection: " + file); }
|
||||
catch (java.io.IOException expected) { }
|
||||
} else EditorConfig.validate(baseline, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test public void replacesAtomicallyAndBoundsReads() throws Exception {
|
||||
Path dir = Files.createTempDirectory("betterrtp-editor-test"); Path file = dir.resolve("config.yml");
|
||||
try {
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: [false]
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,26 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
- lobby: nether
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,23 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip: false
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MinRadius: 3000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: other.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Cooldown: -1
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
Injected: true
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: false
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: END
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,24 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: false
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,28 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
- resource:
|
||||
Shape: circle
|
||||
MaxRadius: 5000
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,25 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: []
|
||||
DisabledWorlds: [prison]
|
||||
Overrides: []
|
||||
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
@@ -0,0 +1,29 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- hub: survival
|
||||
- resource: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
MaxRadius: 2000
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- staff:
|
||||
- survival:
|
||||
Priority: 2
|
||||
Biomes: [forest]
|
||||
Cooldown: 30
|
||||
- member: []
|
||||
@@ -0,0 +1,24 @@
|
||||
Language-File: en.yml
|
||||
Settings:
|
||||
MaxAttempts: 32
|
||||
Default:
|
||||
MinRadius: 10
|
||||
MaxRadius: 1000
|
||||
MinY: 0
|
||||
MaxY: 320
|
||||
Biomes: []
|
||||
BlacklistedBlocks: [water]
|
||||
DisabledWorlds: [prison]
|
||||
Overrides:
|
||||
- lobby: world
|
||||
WorldType:
|
||||
- world: NORMAL
|
||||
CustomWorlds:
|
||||
- world:
|
||||
Future: unchanged
|
||||
PermissionGroup:
|
||||
Enabled: true
|
||||
Groups:
|
||||
- vip:
|
||||
- world:
|
||||
Priority: 0
|
||||
Reference in new issue
Block a user