Repository navigation
v26.9 "Sirius"
Ranks & permissions
- The hardcoded
Rankenum is gone. Ranks are now defined entirely inranks.json(SQL-backed, with the JSON file as snapshot and fallback) and are editable at runtime through/rankconfig. @Permissionno longer takes alevel. A command declares only its permission node, and the rank required to reach it is derived by resolving the least privileged rank that grants that node. Re-tiering a command is now a config edit. A node that no rank grants is unreachable rather than open.- Node lookups are served by a segment-indexed
PermissionTrie, which handles exact grants and trailing wildcards in a single walk. RankRolebinds the few code paths that need to name a rank (default,default_op,impostor,admin_default,console_floor) to whichever rank declares that role inranks.json, each with a structural fallback.- The console-only rank flag is removed. Console channels sit at
console_floorand are raised byhost_senders:bindings.
Titles
New system alongside ranks, defined in titles.json and stored in the titles / title_permissions tables.
- A title has no level and no inheritance. It grants exactly the nodes listed on it, matched exactly.
- A player may hold several titles; their capabilities are the union.
weightorders titles for display only. - Managed with
/title [list | info | of | grant | revoke]. Granting is gated ontfm.manage.titles.
Database
- The 15 per-engine repositories collapsed into generic repositories running over a dialect-aware adapter. H2 support is removed; SQLite, MySQL and PostgreSQL remain.
- New persisted domains: players, ranks, titles, protected areas, saved flags, Discord links, plus a
migrationsledger. - Startup no longer blocks on the database. Every domain starts on its JSON snapshot and swaps to SQL once the background bootstrap finishes, so an unreachable host delays only the swap.
AccessControllercaps in-flight queries with a fair, re-entrant FIFO semaphore sized to the HikariCP pool.PersistenceQueueserialises each domain's writes onto one ordered chain and is awaited before the shutdown flush./sqlstatusreports pool health: active/idle/total connections, threads waiting, and fairness-queue state.- YAML data files migrate once per domain into SQL, tracked by the ledger.
admins,bans,permbans,ranks,protectedareas,savedflags, per-player data,backupandversionare now JSON.
Discord
- JDA replaced with Discord4J and Reactor throughout the bridge, relays and slash commands.
DiscordConnectionowns the gateway and its reconnect budget. Attempts are spaced bydiscord.reconnect.interval_secondsand capped atmax_attemptsconsecutive failures; any successful connection resets the count.- Repository work runs on
boundedElastic, server-state reads hop to the main thread, and each interaction has its own error boundary. discord_links.jsonis written through on every link change and reconciled back into SQL at startup if it is newer.
Spy modes
SpyMode(off,ops,admins,all) is shared by/cmdspy,/potionspy,/signspyand the new/bookspy. Each mode is stored per player./bookspyrelays book edits to admins with a per-page diff, click-to-view pages, and unsafe pages withheld.- SignSpy suppresses no-op edits and blank placements, marks truncated lines, and shows a
[View]button for the full sign.
World System
World generation and world management are now driven by JSON profiles instead of hardcoded worlds and config.yml toggles.
Profiles
- Every
worlds/<name>.jsonfile is a world TFM runs. The file name is the world name (lowercase letters, digits,_and-only). There is no per-world enable flag; deleting or renaming the file is what turns a world off. GenerationServiceparses every profile at startup and skips any that fail, logging every problem found, so one bad file costs that world and nothing else. It also sits behind the plugin's default world generator hook, so a profile can drive a world created throughbukkit.ymlor another world manager.- Bundled templates ship for
overworld,adminworld,flatlands,netherandend. With no usable profile on disk,flatlandsis seeded from its template on first start. Once written, the file is that world's profile and is never overwritten. - A shared biome library can be referenced from a profile with
"ref". Inline biome definitions and plain vanilla biome names work without it. - Profiles are checked on load (shapes, palettes, features, splines, noise settings), and the first bad value is reported with the field it came from.
Generation
- Three shape modes:
flat(layer stacks such as1|bedrock|59|stone|3|dirt|1|grass_block),heightmap(spline-shaped simplex terrain with warp, rivers and ridged caves), anddensity(3D noise withhollowandbandfalloffs, used by the nether and end). - Chunks run through a staged pipeline: generator, carver, designer (layer and surface-rule), then populators.
- The palette covers default/fluid/bedrock blocks, bedrock placement (
NONE,FLOOR,FLOOR_AND_ROOF), depth-based surface rules per biome, and a temperature/humidity climate map that picks biomes. - Features:
ore,patch,lake,boulder,treeandnatural_tree, each with rarity, Y range and biome filters. - Individual vanilla steps (
surface,caves,decorations,mobs,structures) can be switched on per world alongside the custom generation. - Spawn points are found by a
SpawnFinderso players don't land inside terrain or fluid.
Managed worlds
WorldManageris now a registry ofCustomWorlds keyed by name instead of hardcodedadminworldandflatlandsfields. Any world with a profile gets the same treatment.- A profile can declare
world.access.permissionto gate a world behind a permission. Gated worlds get a guest list, timed access checks, and independent time and weather controls. Because this is generic, a title-gated world reuses the exact machinery the admin world used to own. - Admin and title grants/revokes now invalidate the access cache for every managed world (
invalidateAccessCaches), not just the admin world. - Changing a profile's generation settings (
shape,palette,features, or theenvironment,generateStructures,seedandvanillakeys) archives the old world folder and generates a fresh one on next start, so new chunks never seam against old ones. Behavioral flags (access,roExempt,weatherDisabled,blocking) are read live and never trigger an archive.
Per-world settings (replaces config.yml)
The server-wide disable: and flatlands: blocks in config.yml are removed. The equivalents live in each profile under world:
Old config.yml key |
New profile key |
|---|---|
disable.spawners |
world.blocking.spawners |
disable.spawner_place |
world.blocking.spawnerPlace |
disable.portal_create |
world.blocking.portalCreate |
disable.pistons |
world.blocking.pistons |
disable.entity_spam / entity_spam_max |
world.blocking.entitySpamMax (absent means no cap) |
disable.night / disable.weather |
world.weatherDisabled |
flatlands.generate / generate_params |
worlds/flatlands.json (shape.layers) |
- New
world.blocking.monstersstops natural monster spawns in a world. It is checked on every spawn, so edits apply immediately. - New
world.roExemptopts a world's players out of/rowhen it's run against all players (previously hardcoded to the admin world). - Existing servers need to carry any non-default
disable:orflatlands:values into the matching profile by hand; the old keys are ignored.
Commands & permissions
/adminworld,/flatlandsand/wipeflatlandsare removed.- New
/manageworld(mw,worlds,tfw,tfworlds) manages any managed world:guest <add|remove|purge|list>,time,weatherandwipe. Needstfm.world.manage. /manageworld wipe <world>is console-only, needstfm.admin.senior.wipeworld, flags the wipe, kicks everyone and shuts the server down. The world is wiped on the next start.- New
/worldtp(wtp,tpw,tpworld) teleports to any managed or loaded world, with tab completion. Needstfm.world.tp. - The default rank now grants
tfm.world.tpin place oftfm.world.flatlands. Admin-and-up still get everything throughtfm.world.*. tfm.world.adminworld.manageandtfm.admin.senior.wipeflatlandsno longer exist;tfm.world.adminworldis now just theaccess.permissioninadminworld.json.
Other
- Complete reorganization of imports, and purged unused imports entirely using gradle OpenRewrite plugin
/saconfig listgroups admins by the rank they actually hold;/saconfig setrankaccepts any rank markedadmin.- Whitelist toggling split onto
tfm.server.whitelist.manage, separate fromtfm.server.whitelist. - The HTTP help module groups commands under the rank derived from each node, and lists ungrantable commands without a heading.
- Admins can no longer execute destructive / disciplinary commands against other admins. The only exception to this is /doom, which has been elevated to console_only.
Displayablemoved fromrankto a newdisplaypackage.- Admin lookup by name/IP in
AdminListflattened; behavior is unchanged (a name match with an unknown IP in offline mode still falls through to the IP lookup). - New
Lazyutility for thread-safe one-time initialisation, andFUtil.lerp. - Version bumped to 26.9; build dependencies regrouped, Discord4J, Reactor, HikariCP and the JDBC drivers added.
Summary of Commits
- Fix /autotp and /autoclear by @luke560 in #52
- Add a command to toggle join/leave messages for non-admins by @luke560 in #50
- Fix formatting inconsistencies by @luke560 in #49
- Adds a text filter to TFM by @gamingto12 in #51
- Fix /fuckoff by @luke560 in #55
- Add /signspy: spy on sign edits by @luke560 in #54
- Add bookspy and unify spy modes by @luke560 in #59
- Fix Discord Bridge by @Paldiu in #62
- Fix SQLite login deadlock and updated_at migration by @luke560 in #60
- Merge scope/discord-rewrite into release/v26.9-sirius by @Paldiu in #63
- Rank System Overhaul + New Title System by @Paldiu in #61
- Tab completion for greedy command arguments by @luke560 in #58
- adds sign + book to text filter by @gamingto12 in #65
- Persist /jlm toggle and restore its non-op permission by @luke560 in #66
- Fix JSON/SQL persistence: reconcile, ranks, bans, players by @luke560 in #67
- Remove AutoKick by @VideoGameSmash12 in #69
- Removes command preprocess logging entirely by @VideoGameSmash12 in #70
- Fix two bugs related to cages and player data files not saving properly by @VideoGameSmash12 in #71
- Why is it like that? by @VideoGameSmash12 in #74
- fix: regex for worldedit blocker by @khyvie in #76
- feature: allow configurable join/leave messages, impl patch to sirius branch by @khyvie in #77
- /crash: use openBook instead of sendMessage by @VideoGameSmash12 in #75
- Extra evil /crash using PacketEvents by @VideoGameSmash12 in #78
- Let's make /crash actually evil by @VideoGameSmash12 in #80
- Fixed WorldEdit radius command used inside of a protected area - prod by @notsceptor in #86
- Blocks chat and all commands on spawn by @notsceptor in #87
- implemented packet validation to require_movement by @notsceptor in #90
- oops by @notsceptor in #91
- fix false positives on tp by @notsceptor in #93
- adds feedback for the chat filter by @notsceptor in #92
- Fix spawn movement requirement and add settings toggle by @notsceptor in #94
- adds guard back by @notsceptor in #97
- return on peaceful difficulty by @zzspeed in #98
- Expands upon the chat filter. by @notsceptor in #95
- removed admins no longer have access to potspy by @zzspeed in #99
- punishment history by @notsceptor in #102
- delay rollback till disconnect by @notsceptor in #101
- Updated moblimiter by @notsceptor in #100
- Release/v26.9 sirius by @Paldiu in #64
- Scope/world generation by @Paldiu in #72
New Contributors
- @gamingto12 made their first contribution in #51