UltiTools-API 7.2.0 Release Notes
7.2.0 has no breaking API changes: japicmp reports zero binary incompatibilities and zero source incompatibilities against 7.1.0. Existing modules and connected Paper plugins should still review the behavior changes below before upgrading. A module that requires only the 7.0 API can keep api-version: 700.
The target remains Paper 26.3 build 258 (paper-api:26.3.build.258-stable) with Java 25. This is an exact target, not a minimum-version range. Build with JDK 25, targeting Java 25. Plain Spigot is not supported. Use com.ultikits:UltiTools-API:7.2.0 from Maven Central. The optional com.ultikits:ultitools-testkit:7.2.0 remains experimental and belongs in test scope, not on production servers.
Module and external plugin loading
Modules and Paper plugins that call UltiToolsAPI.connect(this) now share the framework's loading and cleanup steps. Modules keep their module hooks; external plugins still use the JavaPlugin lifecycle. Automatic discovery is restricted to each plugin's own JAR or compiled class directory, even when modules share scan packages or a class loader. JARs need no package directory entries. (#1174, #1175, #1176)
External plugin components can now inject UiService. They receive their own Scheduler instead of the framework's scheduler. Both annotated and submitted tasks belong to the connection. Disconnect retires its tasks and ends its UI sessions; reconnect supplies new instances. (#1185)
External plugin configuration and reload
connect discovers top-level @ConfigEntity and @ConfigConverterFor classes in the main package and its subpackages. Managed components can inject the configuration entities. Configuration lives under plugins/<plugin name>/; {key} comments use the plugin's own message catalogue. @Scheduled period and initial delay and @CmdCD cooldown can now bind to values on the plugin's registered configuration entities. (#1188, #1190)
/ul reload now reloads modules first and then each connected external plugin's typed configuration and message overrides. /ul reload <name> and command completion include connected plugins. Plugin authors can use UltiToolsAPI.reload(this) to reload their own plugin. Reload does not call Bukkit's reloadConfig() or restart plugins. (#1189)
UltiCloud and the panel
Connected plugins can use CloudPlayerLinks.create(JavaPlugin, UUID, String, GameAuth, Set<LinkProof>), setHandler(JavaPlugin, LinkEventHandler) and removeHandler(JavaPlugin). Register the handler after connect. Only one owner, either a module or an external plugin, can hold it at a time. The wire protocol and receipt deduplication are unchanged. Disconnect releases the handler unless the framework's plugin manager is already unavailable. (#1186)
For a connected plugin with panel responders, UltiCloud now gets the plugin's own descriptor version normalized to X.Y.Z in modules:<identifier>@<X.Y.Z>. While connected, UltiTools checks the entire advertised capability set every five seconds. Two consecutive checks of the same changed set trigger one normal reconnect, usually within about ten seconds of the change plus the normal reconnect delay. This covers late responder registration, capability switches or availability changes, and external plugin disconnect. Adding a responder to an already advertised capability does not trigger a reconnect. The panel's Plugins page still lists Bukkit plugins, not responders; the structured configuration editor still lists and edits only UltiTools module configuration. (#1183)
Behavior Changes and Upgrade Notes
Discovery and ownership
- JAR discovery for
@Tablestill covers the entire JAR; class-directory discovery uses the scan packages. ExplicitadditionalEntitiesdeclarations still work. If the class loader resolves a same-named class from a different source, the scan skips and logs it. A package declared throughscanBasePackagesor@ComponentScanwith no classes in the plugin's source is skipped with one warning naming the plugin and package. Class-directory scans do not follow symbolic links to package directories or search other classpath roots. - Entity ownership is reserved before component construction, so a nested
connectcannot take an already claimed entity, including one defined in another plugin's JAR. Failed loading, module unload, and external plugin disconnect release that scope's claim. A shared-library entity can be claimed by another plugin once the prior owner's last scope is gone. Unloading an old module version does not release its replacement's claim. @EnableAutoRegisterstill controls module command and listener discovery, but does not change an external plugin's automatic registration policy. Per-command and per-listenermanualRegisterstill works. Tab completers installed by external plugin initializers now belong to the connection and are removed on disconnect. In-process test listener stand-ins are not registered with Bukkit on either load path.
Injection and connection lifetime
- To inject
CommandExecutor,TabExecutororTabCompleterby type, provide a matching component in your own container. Missing optional dependencies stay unset and missing required dependencies fail instead of receiving the framework's Bukkit plugin. Injection by supported host plugin types still works. - For other by-type lookups in an external plugin, a matching local component still wins. If the parent container would supply the UltiTools plugin itself, injection instead uses the connected plugin when it matches the requested type, including
LifecycleEventOwnerandNamespaced. An optional dependency on concreteUltiToolsis now unset; a required one refuses the connection. To obtain UltiTools explicitly, useBukkit.getPluginManager().getPlugin("UltiTools"). TheultiToolsname is still listed bygetBeanNamesForTypefor matching types,getBean("ultiTools")still returns the framework bean, and other framework beans remain available. Modules still receive UltiTools forPluginandLifecycleEventOwner. (#1182) - Call
UltiToolsAPI.disconnect(this)on the server thread, for example inonDisable. UI sessions and tasks end before@PreDestroy; old schedulers reject submissions withRejectedExecutionException. If you callPluginManager.registerExternaldirectly, use a freshExternalPluginAdapterfor each attempt, even after a failure. - An invalid
@PlayerCachedeclaration or missingPlayerCacheSaverrefuses a module beforeregisterSelf()or an external plugin before automatic registration. Failed loads roll back framework registrations and attach cleanup failures as suppressed exceptions to the original error. They do not undo arbitrary effects in plugin code. The normal unload and shutdown order is unchanged. - Module unload clears its data scope and clears the conventional static
instancefield if it still points to that module. An accessor that reads the field can now returnnullafter unload. A same-name replacement keeps its own instance and scope.
Configuration and bindings
- Configuration entities, converters, conditions, and bindings are scoped to their owner. Module configuration paths, lifecycle and existing public signatures are unchanged. Members marked
@ApiStatus.Internalare framework-only. - Modules now discover
@ConfigEntityand@ConfigConverterForonly in their own JAR or class directory. If you previously relied on discovery from a sibling JAR, package those classes in your module's own JAR. Existing files are not deleted or migrated.PackageScanUtilsis deprecated without a public replacement; with auto-registration enabled, UltiTools performs the module scan itself. A module using the legacy connector constructor with configuration auto-registration now discovers entities from its own JAR and writes to the connector's resource folder. A newly discovered configuration that fails validation can prevent that module from loading. (#1184, #1187) - For external plugins, UltiTools writes missing settings from field defaults, not from bundled YAML. Call
saveResourcebeforeconnectif you need a bundled template. A validation failure prevents writes from the configuration initialization batch. Disconnect reports but does not save unsaved entity changes, and off-thread disconnect does not release the entities. Use either Bukkit or a configuration entity as the writer for a given file. - External plugin components annotated with
@ConditionalOnConfigno longer register by default. At connection, the condition reads the named file relative to the plugin's data folder. Check that the key istruefor components you need, or usenegate = truefor the reverse condition. - Invalid binding declarations or out-of-range values refuse
connectwithout rewriting the rejected value. Initialization may already have filled missing defaults or refreshed comments. Only modules must declare a module API level for these features.
Reload results and command text
- A full reload reports separate module and external plugin counts, names failures and continues with other hosts. A configuration that fails validation keeps its running values and does not notify its listeners; that plugin's message overrides are not refreshed in the same run. A valid timing change reschedules the task on the plugin's scheduler; a valid cooldown change only affects new invocations. Rejected binding changes preserve the previous behavior and produce a partial reload result.
- Named reload matches connected plugin names without regard to case. If a module has the same name, it takes precedence. Use the full reload or the plugin API to reach that external plugin.
/ul liststill lists modules only. - Call
UltiToolsAPI.reload(this)afterconnectreturns and on the server thread. It returns aReloadReportfor inspection. An off-thread call on a connected plugin returns a partial report without applying changes; calling before connection completes or after disconnect throwsIllegalStateException.UltiToolsAPI.reloadMessages(this)remains message-only and can be called from any thread. - Update checks that match the English or Chinese messages exactly.
ul.helpandul.reload.not_foundnow mention connected external plugins; the latter still suggests/ul listonly for modules.reload.framework_overrides_failedsays that loaded messages are kept and the reload continues. The final console line reads “Reload only refreshes configuration and messages. Restart the server to install or uninstall plugins.”
Cloud identifiers and player links
- When registering an external responder, pass
getName()as its owner. The advertised identifier comes from theplugin.ymlname, trimmed and lowercased. It starts with a letter, contains letters and digits with optional dot or hyphen separators, and is at most 64 characters. Names such asMy_Plugin,My Pluginand2Pluginare skipped with a warning instead of rewritten. Use distinct identifiers for modules and external plugins: in a collision, the first owner in sorted name order keeps the declaration, and the conflict is logged once while it persists. Routing with colliding owners is not supported. - Existing module
CloudPlayerLinkssignatures are unchanged. In source tests that pass a literalnullrequester or owner, cast it to the intended type to select the overload; both overloads reject it. Default methods on the internalCloudPlayerLinks.Transportkeep module-only test transports working. Only the framework transport implements the external plugin path. - The player-link documentation clarifies that
LINK_NOT_PERMITTEDcan also mean that none of the offered proofs is acceptable for the reported game authentication. This is not a new protocol result. (#1197)
Server diagnostics and runtime behavior
- A failed
connectretains its cause and includes the first diagnostic line, with itsULTI-code when available. MissingPlayerCacheSaverdiagnostics name the author's class rather than a generated proxy. Entity scan summaries distinguish modules from external plugins. Container diagnostics printULTI-6017guidance once per bean alongside skip details, attribute dependent-bean failures to the earlier dependency error, and reserveULTI-2008for registration failures while deriving the bean name. (#1169, #1196, #1197) ULTI-4020now gives startup registration guidance to both module and external plugin authors.Closing container...is now logged atFINEinstead ofINFO; cleanup behavior is unchanged.- Cleanup failures report the plugin, failed steps and original error. Automatic external-plugin disconnect reports a failure once and continues without logging success. Explicit
disconnectstill throws the first failure;disconnectAllstill attempts all connections before throwing its first failure. Superseded module unload failures now useFailed to unregister plugin, identify both versions and report failed steps. If the old unload hook or container close fails, a separate INFO says the replacement continues loading. (#1179) - On framework startup failure during dependency initialization, the framework retires its scheduler and propagates the original failure. Failed catalogue initialization no longer leaves a global Adventure translation source. Successful startup is unchanged. A new delayed teleport now silently replaces any pending countdown for the same player. (#1172, #1170)
- For any scanned bean,
@Scheduledmethods register by method name, then by parameter types. Subclass declarations no longer all precede inherited methods. This does not guarantee execution order. (#1191)
Test kit, example and build verification
@UltiToolsTestno longer searches sibling compiler output directories automatically. If an output is packaged into your module's JAR, declare it asadditionalModuleCodeSources = @UltiToolsTest.ModuleCodeSource(module = MyModule.class, marker = SiblingOutputMarker.class). Keep the module's scan packages; the extra directory is searched for components and entities under those packages. Do not declare dependency JARs or test classes as module code. The published test kit POM drops Central's snapshot repository; the Paper repository remains. (#1174, #1181)- The demo module's greeting command and join listener inject
GreetingActions; its in-process test usesBeanOverrides.replaceto substitute the service. Normal greeting, storage and heartbeat behavior are unchanged./dnotice helpshows localized usage;/dnoticestill displays the notice. (#1195) - For framework contributors, CI requires 70% JaCoCo line coverage from the regular build (including packaged-artifact tests) and isolated tests combined.
mvn testandmvn verifyalone do not apply this floor, including runs with-Dtest=…. To reproduce it locally, runmvn -B clean verify,mvn -B test -Dgroups=isolated -DexcludedGroups=, thenmvn -B jacoco:check@check, without cleaning between steps. (#1192)
Related guides
External Plugin API · Panel Integration · Testing Modules and Plugins · Framework Compatibility Notes · GitHub Release