Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.6.1

- `mask-for-viewers` no longer gets a warning at start-up saying it isn't a setting. 0.6.0 read and used it all along; only the list of known settings missed it.
- Tested: unit tests, including a check that the setting raises no warning. Not run on a live server.

## 0.6.0

- **Adults' words masked for kids** (D233, D235). A new `mask-for-viewers` setting in `filter.yml`, off by default. With it on, a player with `mayor.filter.bypass` writes freely, and anyone without the bypass sees each blocked word as `****` in that player's chat and private messages, while players with the bypass see them as written. A player without the bypass counts as filtered, so one whose permissions aren't known yet is filtered too.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "com.extantape"
version = "0.6.0"
version = "0.6.1"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(25))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public final class SettingsLoader {
private static final Set<String> CONFIG_KEYS = Set.of("config-version", "circles", "circle-only-worlds",
"world-groups", "dimension-suffixes", "private-message-commands", "reply-commands", "broadcast-commands",
"blocked-commands", "nobody-heard", "messages");
private static final Set<String> FILTER_KEYS = Set.of("enabled", "check", "words", "allow");
private static final Set<String> FILTER_KEYS = Set.of("enabled", "check", "words", "allow", "mask-for-viewers");

/** The result: settings to apply, or errors explaining why there are none. Warnings either way. */
public record Result(Settings settings, List<String> errors, List<String> warnings) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ void maskForViewersIsOffByDefaultAndReadFromFilterYml() {
SettingsLoader.Result on = load(null, "words: [heck]\nmask-for-viewers: true\n", null);
assertTrue(on.ok(), on.errors().toString());
assertTrue(on.settings().filtered().maskForViewers());
assertTrue(on.warnings().isEmpty(), on.warnings().toString());
}
}
Loading