Skip to content

Commit

Permalink
Add option for AutoText whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyKnight committed Jun 7, 2021
1 parent 72476f8 commit b8d0dd0
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/main/java/me/mightyknight/blcdisabler/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public Map<String, DisallowedMods> getModsDisallowed() {
private class DisallowedMods {
private boolean disabled;
private JsonObject extra_data;
private JsonObject settings;
}

}

0 comments on commit b8d0dd0

Please sign in to comment.