RIDDLES LABS / SHARED INFRASTRUCTURE
The shared foundation behind connected Riddles Labs plugins. Core provides the scheduling, lifecycle, configuration and diagnostics tools that let each plugin focus on its own features.
Source version 0.6.19 · Java 21 / 25 · Paper / Folia
Current changes · Menus · Notifications & dialogs · File protection · What Core does · Getting started · Plugin connections · Configuration · Commands & permissions · Languages · Optional integrations · Developer API · Troubleshooting · Source references
The display name is Riddles Core. Its technical server-plugin ID remains RiddlesLabsCore; dependency declarations, data folders, Java packages and existing filenames must keep their actual names. Core runs as that server plugin. Other plugins explicitly register with it and receive a module that owns their shared resources. Those resources can be released together when the plugin shuts down.
| Shared facility | What it provides |
|---|---|
| Lifecycle & ownership | Module registration, API version checks and cleanup of resources belonging to each plugin. |
| Scheduling & work queues | Paper/Folia scheduling for entity, region, global and asynchronous work, plus bounded background queues. |
| Configuration & files | Validated configuration snapshots, default-file installation and controlled file access. Invalid reloads can retain the last valid configuration. |
| Commands, listeners & menus | Reusable command routing, owned event listeners, menu sessions, pagination and input flows. |
| Storage, caches & documents | Explicitly opened SQL facilities, local bounded caches and typed file stores. Each product still chooses its data and storage behavior. |
| Services & events | Named services and namespaced events for plugins that deliberately expose and consume them. |
| Languages & messages | Opt-in per-plugin language catalogs, locale selection and safe message variables. |
| Diagnostics | Module state, queue activity, health signals, metrics and bounded failure records. |
Installing Core alone does not create plots, currencies, trails or a player marketplace. The individual plugins provide those features and keep control of their permissions, gameplay and data. Core does not automatically connect every plugin to every other plugin.
Core does not require TNE or Vault to start. The separate future economy adapter is excluded from the normal Core build. Riddles Core is also separate from TNECORE, the backend used by TNE services.
Core 0.6.19 targets Paper 1.20–26.2 and available Folia releases from 1.20.1–26.2. It emits Java 21 bytecode; use Java 21 on compatible older servers and Java 25 for 26.x. This is a source compatibility range, not live certification of every plugin combination. Core is not a Spigot plugin.
Check the release notes for the Core JAR and every plugin you plan to install. An older plugin guide or an older installed JAR may describe different requirements. Core's pre-1.0 API version ranges matter; upgrading to a future 0.7.x is not automatically compatible with a consumer that requires an API below 0.7.0.
plugins/ folder, alongside the compatible Riddles Labs plugins you use. Remove an obsolete duplicate Core JAR when replacing it./rl info and /rl modules. Use /rl health <module-id> for a particular plugin.Core creates its configuration under plugins/RiddlesLabsCore/config.yml. You do not need to configure Discord, FastStats or an economy provider to use the shared infrastructure.
After server load, Core can print a summary of enabled plugins that registered an open Core module. It reports their versions, module IDs, declared readiness, health signals and resource activity.
READY is a consumer-declared state. It is not a live database or network probe. STARTING can indicate that a plugin is still in setup or a limited mode. A plugin appearing in the server's plugin list does not necessarily mean it registered with Core. Databases managed independently by a consumer are not included in Core's database counts.
Current source requirements, reviewed 24 October 2026:
| Plugin | Core relationship | Module ID | Core API range |
|---|---|---|---|
| Riddles Region Manager 1.1.15q | Required; region runtime and shared services. | regionmanager |
≥0.6.17, <0.7.0 |
| Riddles Trails 1.6.6 | Required; scheduling, menus, languages, quests and diagnostics. | riddlestrails |
≥0.6.18, <0.7.0 |
| The Newer Economy 1.0.79 | Required on the Minecraft server; TNE owns its financial ledger. | tne |
≥0.6.17, <0.7.0 |
| Riddles Queue 1.15.0 | Required on backend/standalone servers; not on the proxy. | riddlesqueuebridge |
≥0.6.16, <0.7.0 |
| Riddles Labor | No Core dependency was verified in the inspected local descriptor/build files. Check its own release requirements. | Not verified | Not verified |
Core 0.6.19 satisfies these current consumers. A source version does not establish that the same public binary is available. Match the installed release and all third-party dependencies. Current Trails includes native Folia quest scheduling; installing Core on a server does not install it into Velocity or BungeeCord.
| Release | Owner/developer impact |
|---|---|
| 0.6.12 | Bundled FastStats project IDs for Core, Trails, Region Manager and TNE. Global opt-in remains required; custom tokens override bundled defaults. |
| 0.6.13 | Thirty bounded numeric Core metrics for readiness, workers, database gauges, errors and startup. Local diagnostics do not poll SQL or external services. |
| 0.6.14 | Missing per-module telemetry switches are installed when modules register telemetry. Existing choices remain; discovery does not enable global telemetry. |
| 0.6.15 | Local samples begin immediately, again at ten seconds, then every thirty seconds. ACTIVE still does not prove remote delivery. |
| 0.6.16–0.6.17 | Java 21 compatibility and platform/menu adapters for older Paper/Folia. Native capability checks choose supported implementations. |
| 0.6.18 | Region-halo ownership checks for safe nearby world reads; used by Trails quest collision checks. |
| 0.6.19 | Normal startup STARTING/UNKNOWN signals display as PENDING for up to thirty seconds, or until healthy READY. Real failures remain visible; a compact completion transition avoids repeated startup noise. |
The startup view uses cached observations at forty-tick intervals. It does not alter underlying health or metrics, hide UNAVAILABLE/stalled/degraded states, or turn a readiness report into a live database probe.
| Release | Shared additions | Confirmed adoption |
|---|---|---|
| 0.6.8 | Configured presentation, editing guidance, notifications, native dialogs, optional profile lookup and typed arguments. | APIs are opt-in; installation alone does not rewrite consumer features. |
| 0.6.9 | Appearance overlays for existing dynamic menu icons. | Region Manager retains its zMenu controllers and adopts Core rendering. |
| 0.6.10 | Notification catalogs, byte-preserving file relocation, serialized revision-aware file coordination, finite-double and bounded-integer parsing. | Region Manager 1.1.15l and Trails 1.6.3 adopt shared services. |
| 0.6.11 | Streamed file replacement, optional first-copy backups and failure cleanup. | Region Manager 1.1.15m uses it for configuration upgrades and schematic writes. |
Stop the server normally, back up your files and replace the existing Core server JAR with a compatible current release. Keep only one Core JAR. Use the connection table above to match consumer API ranges. Do not assume a future 0.7.x satisfies a consumer requiring an API below 0.7.0.
Retain existing configurations, translations, data and support pairing. This Core update does not require a database reset. Consumer migration rules still belong to each product. Check each plugin’s release notes and server requirements before updating; the inspected RRM and Trails builds compile against 26.2.
Adopting plugins can use Core to render translated menu titles, item names and lore, Minecraft materials, custom model data and namespaced item models. Core validates menu rows, slots and item references before accepting a configuration. The consumer owns the actual file, action IDs, layout policy and permission checks.
Region Manager still requires zMenu. It uses Core’s appearance overlay while retaining its own dynamic items, button identifiers, pagination, layout rules and click handling. Core does not replace zMenu inventories or perform purchases when it renders a button.
Optional item references support ItemsAdder, Nexo and Oraxen. Only explicitly configured references trigger lookups. If a provider or item is missing, incompatible or fails to resolve, Core falls back to the configured Minecraft item. These providers are not required by Core, and their own Paper/Folia compatibility must be checked separately.
Existing icons are cloned before decoration. Unspecified appearance fields inherit the icon; an explicitly empty lore list clears lore. Changing material can affect metadata compatibility. A custom-provider icon preserves the consumer’s button identifiers and dynamic display information as defined by the overlay contract.
For owners, edit the adopting plugin’s generated presentation file and language catalog. Do not paste a generic Core presentation example over Region Manager’s product-specific schema. See the presentation reference (audited source reference).
Core supports chat, action bar, title and silent profiles, plus optional sounds. Silent suppresses both the text and sound. Translated text remains in the consumer’s language catalog; delivery preferences belong to its notification configuration.
Region Manager and Trails now load their notification catalogs through Core. The catalog validates schema version, known language keys, delivery options and sound settings, then returns a candidate map. The consumer decides when to publish that candidate. Core does not automatically apply a partially loaded product configuration.
The shared catalog uses a schema-version and overrides structure. Use the file generated by your plugin: language-key paths identify the messages being overridden. Unknown keys and unsupported options are rejected. The generic notification-profile API also exists, but its example layout is not interchangeable with the product catalog.
Output is scheduled on the player’s owning thread. Completion confirms dispatch, not that the client visibly displayed the message. Notification work is bounded; overload, disconnection or shutdown can reject a request.
Core provides confirmation, single-line text, single-choice and exact-decimal number prompts. Region Manager uses the shared text-dialog service. Dialogs coordinate with Core chat prompts so a player cannot have competing Core input requests across modules.
Prompts have an explicit Cancel button, an expiry and one-use callbacks. Accepted, cancelled, timed-out, invalid, disconnected and owner-closed outcomes are distinct. Invalid input ends the request; the consumer decides whether to reopen it. Unrelated plugins’ dialogs are outside this coordination.
These native dialogs target supported modern server/client capabilities. Core does not provide an older-client, chat or inventory fallback for this dialog API. A product may have its own behavior, but it should not be inferred from Core’s API alone.
A consumer can explicitly request cached UUID profile data or a player-head item through the server’s asynchronous profile API. Opening the service makes no network request. A lookup may contact the server’s configured upstream profile service; Core does not install its own Mojang HTTP client, credentials or refresh poller.
Region Manager uses the shared profile service for its menu-head support. Consumer configuration determines whether the feature is used. The defaults bound the cache to 512 entries, positive caching to one hour, negative caching to one minute and concurrent physical lookups to eight. The server API controls request completion; a slow request may occupy a bounded slot.
A missing skin can produce a plain head. Core does not place the item in an inventory, change player identity or create an account. Consumer callbacks must use the appropriate entity scheduler for inventory updates.
Shared parsers cover durations, exact decimal amounts, enums, identifiers, finite Java doubles and bounded integers. They return structured errors for the consumer to translate. Region Manager and Trails use these helpers while keeping their own normalization and validation rules.
Exact decimal parsing does not define currency precision, authorize a payment or replace TNE transactions. Finite-double parsing is a separate contract and should not be treated as exact money arithmetic.
An adopting plugin can add authored headings, explanations, examples and exact placeholder meanings to existing YAML files. This is explicit consumer behavior: installing Core alone does not annotate every plugin’s files.
Existing values, quoting, line endings and owner comments are preserved. Core refreshes only its marked, hash-checked documentation blocks. Put your own notes outside those blocks; editing a generated block causes the update to stop rather than overwrite your edits. Changed files get byte-exact backups in a sibling .documentation-backups/ directory. Identical updates create no additional backup.
Unsupported structures, oversized files and concurrent byte changes are rejected. This service does not translate messages, rename keys or invent placeholder meanings. Annotation failure can be reported while a valid language catalog still loads; invalid translation data remains a separate reload failure.
Core’s relocation helper moves files inside the consumer’s data folder without reserializing their contents. When a destination exists, the consumer chooses whether to retain the source or archive it and use the destination. Archive collisions receive unique backup names. Product-specific migration rules stay with the product.
Trails uses Core’s serial file coordinator to order persistence operations. A file is read and decoded before its revision is accepted; later writes check that revision. Invalid decoding must not accept the candidate. Product code publishes the in-memory result after successful persistence. This is distinct from Region Manager’s existing ordered-snapshot and transaction behavior.
Region Manager now delegates temporary-file writing, flushing, first-copy backup mechanics and replacement to Core for configuration upgrades and WorldEdit schematics. Core has no WorldEdit dependency: Region Manager still captures and serializes schematics, chooses filenames, schedules workers and controls restoration.
The new operation streams to disk instead of Core’s small-file buffer. Its caller chooses an output limit and optional backup; existing first-copy backups are preserved. Serialization or flush failures before replacement retain the destination and trigger temporary-file cleanup.
Atomic replacement is attempted first. A consumer may explicitly allow ordinary replacement when atomic moves are unsupported; Region Manager preserves that fallback from its earlier implementation. That fallback is not an atomicity guarantee during interruption or filesystem failure. Streaming replacement does not compare revisions or coordinate with external editors. Existing revision-aware asynchronous and ordered-snapshot APIs retain their strict atomic-move behavior and byte limits.
For developers, streaming replacement is synchronous and belongs on an admitted I/O worker, never a tick/region thread. Its serializer must not wait for other Core file work while holding the file lock. See 0.6.11 contracts (audited source reference).
Core's configuration sets infrastructure limits and optional integrations. Keep the generated defaults unless you have a specific capacity or operational reason to change them. Restart after changing these startup settings.
| Setting | Default | Purpose |
|---|---|---|
module-limit |
128 | Maximum registered modules. |
task-limit-per-module |
2048 | Per-module task limit. |
services.workers / services.queue-capacity |
2 / 256 | Shared service worker and queue settings. |
files.max-bytes |
2097152 | File payload size limit: 2 MiB. |
menus.max-sessions-per-module |
512 | Per-module menu session limit. |
storage.max-pools / storage.max-connections |
24 / 64 | Global Core storage reservation limits. |
caches.max-caches-per-module |
16 | Cache count limit per module. |
caches.max-entries-per-module |
32768 | Cache entry limit per module. |
caches.max-loads-per-module |
128 | Cache load limit per module. |
documents.max-stores-per-module |
16 | Typed document-store limit. |
inputs.max-requests / inputs.max-requests-per-module |
1024 / 128 | Input request limits. |
startup.enabled / startup.colors / startup.width |
true / true / 76 | Connection summaries and consumer startup banners. |
integrations.placeholderapi |
true | Allow the optional PlaceholderAPI integration when available. |
faststats.enabled / discord.enabled |
false / false | Optional external telemetry and support. |
Additional limits cover metrics, health records, failure history, event subscriptions, placeholders and feature plans. The bundled config.yml (audited source reference) is the complete reference for your source version.
Core does not automatically open a database at startup. Consumers explicitly request storage and supply their own configuration. Pool reservations are not a count of currently active database connections. Core also does not silently switch a failed SQL connection to a different storage backend.
All Core commands require riddleslabs.admin, which defaults to server operators. Core is an administrator/developer tool; ordinary players normally use the commands of the individual plugins.
| Command | What it shows or does |
|---|---|
/rl or /rl info |
Core release/API state, module totals and local optional-support status. |
/rl modules |
Registered module IDs, versions, states and owned-resource counts. |
/rl plugins |
Server plugin availability; not a compatibility certification. |
/rl services |
Published services and their owners. |
/rl tasks |
Task/menu activity and queue statistics. |
/rl health |
Cached health observations and their timestamps. No live probes. |
/rl metrics |
Locally recorded metric summaries. |
/rl storage |
Core-managed storage state and reservations. |
/rl caches / /rl documents |
Cache or typed-document-store diagnostics. |
/rl integrations |
Optional integration status. |
/rl features / /rl inputs |
Feature-plan or input-flow diagnostics. |
/rl debug |
Additional diagnostic information. |
/rl help |
Command usage. |
/rl support [module-id] |
Explicitly request a sanitized support report through the optional paired support service. Defaults to Core. |
Diagnostic listings accept the general form /rl <action> [module-id] [page]. For example, /rl health regionmanager and /rl tasks tne 1. Get the exact module ID from /rl modules.
Plugins can opt into Core's shared language service. Each plugin supplies its own messages and supported translations. The current Trails implementation uses this service; installing Core does not automatically translate every Riddles Labs plugin.
Locale selection follows player preference, client locale, server locale and the developer's fallback, according to the consumer's settings. Player preferences use local persistent player data; they are not automatically synchronized across a network.
Consumers may use a root language.yml or the grouped languages/language.yml layout, with locale catalogs under languages/. The consumer owns any language command and reload action. Validated reloads retain the last good catalogs if the replacement is invalid. There is no automatic machine translation.
PlaceholderAPI is optional. Core can expose consumer-registered placeholders when its integration is enabled. Install PlaceholderAPI only if your setup needs it, and use the consuming plugin's documented placeholder names; Core does not invent balances or plot data for a plugin.
FastStats is optional and globally disabled by default. Export requires the global switch and the relevant per-plugin switch. Bundled project IDs cover Core, Trails, Region Manager and TNE; you do not need to invent a token for these defaults. Explicit custom tokens override bundled values. A missing custom environment variable does not silently fall back, except for recognized old stock placeholders.
When a module requests telemetry, Core adds missing per-module enabled/error-reporting controls while retaining existing values. Bundled projects default enabled at that layer, unknown projects default disabled, and error reporting remains disabled. This never enables the global switch. Discovery can back up the previous file as config.before-faststats-discovery.yml. Restart after editing.
Use /rl metrics riddleslabs-core for local counters and gauges. Cumulative counters should not be summed across samples and are not exact billing data. Local metrics do not depend on remote telemetry.
Error reporting has its own opt-in switch. Local diagnostic metrics are separate from automatically exported telemetry. An ACTIVE integration indicates local initialization, not confirmed remote delivery. Optional telemetry failures do not make gameplay depend on the external service.
Support is optional and starts disabled. It provides explicitly requested, sanitized diagnostic reports—not a remote console, chat relay or automatic log upload.
/support pair name:My server to obtain a short-lived pairing code.rl discord pair CODE. Pairing enables optional support but does not itself submit a report./rl support riddlestrails./support report code:SUPPORT-CODE in Discord. A locally queued receipt is not proof of delivery.The pairing controls are console-only:
| Console command | Purpose |
|---|---|
rl discord status |
Read local support status. |
rl discord enable |
Resume optional paired support. |
rl discord disable |
Pause support while retaining the pairing. |
rl discord unpair |
Revoke the pairing and remove its credential when confirmed. |
Reports contain plugin/version/platform information and a bounded set of health codes, not raw logs, configurations, player IDs, balances or exception text. The local credential at plugins/RiddlesLabsCore/support/credential.json is private; protect it and backups. If unpairing remains pending, inspect status and retry rather than assuming revocation succeeded. Existing downloaded reports cannot be retracted by unpairing.
Core has portable APIs and a Paper/Folia API. Consumers use the shared API supplied by the installed Core plugin; they should not shade a second copy of Core's API into their own plugin.
com.riddleslabs:riddleslabs-paper-api with provided scope (or the portable riddleslabs-api where appropriate).RiddlesLabsCore, loading it first and sharing its API classes.PaperCore from the server's services manager.The riddleslabs-bom can manage matching artifact versions. The audited SDK documentation does not advertise a public Maven hosting URL: use supplied artifacts or an authorized local install workflow rather than an invented repository URL.
Choose the correct scheduler for the server work you perform. A shared scheduler does not make arbitrary world access safe on an asynchronous worker, and a menu helper is not an inventory-trading or financial transaction system. Products retain their own domain validation and permission policy.
See the repository's consumer guide (audited source reference), feature reference (audited source reference) and language guide (audited source reference). Some older prose and SDK examples refer to earlier releases; use the current POM, public interfaces and consumer API requirements when choosing versions.
| Symptom | What to check |
|---|---|
| A plugin says Core is missing | Install the Core server JAR, confirm it enabled successfully, and check the consumer's required API version. |
| Incompatible API range | Compare the consumer requirement with /rl info. A matching brand name is not sufficient. |
| Plugin is absent from the connection report | Check it enabled and registered a Core module. Use /rl plugins and /rl modules to distinguish those states. |
| STARTING or unhealthy module | Inspect /rl health <module-id> and the plugin's own startup messages. Setup/fallback behavior belongs to the consumer. |
| Queue rejection or resource limit | Inspect tasks and capacity settings. Investigate workload or consumer behavior before raising limits. |
| Core storage output does not show TNE's database | The consumer may manage its own storage. Core diagnostics only report the storage registered through Core. |
| Configuration change has no effect | Restart for Core startup settings. For a consumer reload, check validation errors and whether the previous good snapshot was retained. |
| Discord report not visible | Check console rl discord status and delivery status. Pairing and local queue acceptance are separate from delivery. |
The guide above is self-contained. These are files inspected in the Core source checkout; the repository is not publicly accessible at the checked address, so these labels are references rather than download links.
Reviewed against Core 0.6.19 and the current consumer sources on 24 October 2026. This documents source behavior; no Minecraft server or live database was started for the audit.
Audit notes: Current compatibility, dependency ranges, telemetry discovery and startup presentation have been reconciled with 0.6.19. Earlier release sections remain as history. Source versions are not assertions about the JAR running on your server.