Skip to content

Sirius 26.9

Latest

Choose a tag to compare

@Paldiu Paldiu released this 25 Oct 03:09
· 41 commits to prod since this release
9295df4

v26.9 "Sirius"

Ranks & permissions

  • The hardcoded Rank enum is gone. Ranks are now defined entirely in ranks.json (SQL-backed, with the JSON file as snapshot and fallback) and are editable at runtime through /rankconfig.
  • @Permission no longer takes a level. 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.
  • RankRole binds the few code paths that need to name a rank (default, default_op, impostor, admin_default, console_floor) to whichever rank declares that role in ranks.json, each with a structural fallback.
  • The console-only rank flag is removed. Console channels sit at console_floor and are raised by host_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. weight orders titles for display only.
  • Managed with /title [list | info | of | grant | revoke]. Granting is gated on tfm.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 migrations ledger.
  • 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.
  • AccessController caps in-flight queries with a fair, re-entrant FIFO semaphore sized to the HikariCP pool.
  • PersistenceQueue serialises each domain's writes onto one ordered chain and is awaited before the shutdown flush.
  • /sqlstatus reports 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, backup and version are now JSON.

Discord

  • JDA replaced with Discord4J and Reactor throughout the bridge, relays and slash commands.
  • DiscordConnection owns the gateway and its reconnect budget. Attempts are spaced by discord.reconnect.interval_seconds and capped at max_attempts consecutive 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.json is 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, /signspy and the new /bookspy. Each mode is stored per player.
  • /bookspy relays 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>.json file 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.
  • GenerationService parses 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 through bukkit.yml or another world manager.
  • Bundled templates ship for overworld, adminworld, flatlands, nether and end. With no usable profile on disk, flatlands is 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 as 1|bedrock|59|stone|3|dirt|1|grass_block), heightmap (spline-shaped simplex terrain with warp, rivers and ridged caves), and density (3D noise with hollow and band falloffs, 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, tree and natural_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 SpawnFinder so players don't land inside terrain or fluid.

Managed worlds

  • WorldManager is now a registry of CustomWorlds keyed by name instead of hardcoded adminworld and flatlands fields. Any world with a profile gets the same treatment.
  • A profile can declare world.access.permission to 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 the environment, generateStructures, seed and vanilla keys) 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.monsters stops natural monster spawns in a world. It is checked on every spawn, so edits apply immediately.
  • New world.roExempt opts a world's players out of /ro when it's run against all players (previously hardcoded to the admin world).
  • Existing servers need to carry any non-default disable: or flatlands: values into the matching profile by hand; the old keys are ignored.

Commands & permissions

  • /adminworld, /flatlands and /wipeflatlands are removed.
  • New /manageworld (mw, worlds, tfw, tfworlds) manages any managed world: guest <add|remove|purge|list>, time, weather and wipe. Needs tfm.world.manage.
  • /manageworld wipe <world> is console-only, needs tfm.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. Needs tfm.world.tp.
  • The default rank now grants tfm.world.tp in place of tfm.world.flatlands. Admin-and-up still get everything through tfm.world.*.
  • tfm.world.adminworld.manage and tfm.admin.senior.wipeflatlands no longer exist; tfm.world.adminworld is now just the access.permission in adminworld.json.

Other

  • Complete reorganization of imports, and purged unused imports entirely using gradle OpenRewrite plugin
  • /saconfig list groups admins by the rank they actually hold; /saconfig setrank accepts any rank marked admin.
  • Whitelist toggling split onto tfm.server.whitelist.manage, separate from tfm.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.
  • Displayable moved from rank to a new display package.
  • Admin lookup by name/IP in AdminList flattened; behavior is unchanged (a name match with an unknown IP in offline mode still falls through to the IP lookup).
  • New Lazy utility for thread-safe one-time initialisation, and FUtil.lerp.
  • Version bumped to 26.9; build dependencies regrouped, Discord4J, Reactor, HikariCP and the JDBC drivers added.

Summary of Commits

New Contributors