diff --git a/README.md b/README.md index 426df0b..a672329 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,47 @@ This example config will fully disable the waypoints and minimap mods. It will n } ``` +#### Schematica printer mode + +By default, Schematica printer cannot be enabled on servers. +You need to specify that your server allows it using this API, like in this example : + +```json +{ + "modsDisallowed": { + "Schematica": { + "disabled": false, + "extra_data": { + "printerEnabled": { + "forced": true + } + } + } + } +} +``` + +#### AutoText command whitelist + +Instead of disabling the AutoText mod, you can specify a list of commands that you want to allow. +Below is an example which allows the use of a few commands: + +```json +{ + "modsDisallowed": { + "AutoText": { + "disabled": false, + "settings": { + "whitelistedCommands": [ + "/warp", + "/help" + ] + } + } + } +} +``` + ## Compiling 1. Clone this repository and navigate into the directory 2. Launch a build with Gradle using `gradlew build` (Windows CMD) or `./gradlew build` (macOS/Linux/Powershell) diff --git a/src/main/java/me/mightyknight/blcdisabler/Config.java b/src/main/java/me/mightyknight/blcdisabler/Config.java index 51e51d5..c17635c 100644 --- a/src/main/java/me/mightyknight/blcdisabler/Config.java +++ b/src/main/java/me/mightyknight/blcdisabler/Config.java @@ -16,6 +16,7 @@ public Map getModsDisallowed() { private class DisallowedMods { private boolean disabled; private JsonObject extra_data; + private JsonObject settings; } }