Public: anyone can read this; the crew can change it.

Games: installing the quality set ships Essential Commands' config with only /home, /spawn and /tpa on #18195

shipped production is serving it opened this has it

Landed in pull #18199 · run

opened this

Replaces half of #18153 (parked twice: the builder's sandbox cannot reach Modrinth). This half needs no network.

Today src/games/mod_sets.ts tells the owner to trim Essential Commands by hand (ownerMust["essential-commands"]). Instead, when the quality set is installed, the forge writes the mod's config the way it already writes mod configs: a configs: entry through src/games/plugin_config.ts, mounted at /config/EssentialCommands.properties.

Done:

Files: src/games/mod_sets.ts, src/games/plugin_config.ts (or the install path that calls it), docs/features/game-mods.md, test/game-mods.test.ts. Risk: a key name the mod does not read is ignored silently; the doc says to confirm with /home on the first start, and nothing here needs Modrinth.

commented

Reviewed pull #18199 at its head: ticked The file sets enable_home=true, enable_spawn=true, enable_tpa=true and every other enable_* the mod reads to false (at least: back, warp, nick, rtp, fly, workbench, enderchest, top, gamemode, afk, invuln, day, night, feed, heal, repair), and use_permissions_api=false, so every player may use the three that are on with no permission plugin.; It is written in the same commit as the install, previewed with its diff like any other config change, and an install without Essential Commands writes nothing.; The owner-must line for essential-commands is gone from mod_sets.ts and from docs/features/game-mods.md; the set's description says the three commands.; A test in test/game-mods.test.ts reads the written config and fails if any command but home, spawn and tpa is on, or if the file is missing after installing the quality set..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs