Unreleased version v7.3.0-SNAPSHOT. This page describes the alpha branch and may change at any time; it is not part of any released version.

commit 60bfca4 · 2026-12-03 18:05 UTC

Skip to content

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 @Table still covers the entire JAR; class-directory discovery uses the scan packages. Explicit additionalEntities declarations still work. If the class loader resolves a same-named class from a different source, the scan skips and logs it. A package declared through scanBasePackages or @ComponentScan with 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 connect cannot 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.
  • @EnableAutoRegister still controls module command and listener discovery, but does not change an external plugin's automatic registration policy. Per-command and per-listener manualRegister still 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, TabExecutor or TabCompleter by 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 LifecycleEventOwner and Namespaced. An optional dependency on concrete UltiTools is now unset; a required one refuses the connection. To obtain UltiTools explicitly, use Bukkit.getPluginManager().getPlugin("UltiTools"). The ultiTools name is still listed by getBeanNamesForType for matching types, getBean("ultiTools") still returns the framework bean, and other framework beans remain available. Modules still receive UltiTools for Plugin and LifecycleEventOwner. (#1182)
  • Call UltiToolsAPI.disconnect(this) on the server thread, for example in onDisable. UI sessions and tasks end before @PreDestroy; old schedulers reject submissions with RejectedExecutionException. If you call PluginManager.registerExternal directly, use a fresh ExternalPluginAdapter for each attempt, even after a failure.
  • An invalid @PlayerCache declaration or missing PlayerCacheSaver refuses a module before registerSelf() 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 instance field if it still points to that module. An accessor that reads the field can now return null after 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.Internal are framework-only.
  • Modules now discover @ConfigEntity and @ConfigConverterFor only 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. PackageScanUtils is 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 saveResource before connect if 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 @ConditionalOnConfig no longer register by default. At connection, the condition reads the named file relative to the plugin's data folder. Check that the key is true for components you need, or use negate = true for the reverse condition.
  • Invalid binding declarations or out-of-range values refuse connect without 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 list still lists modules only.
  • Call UltiToolsAPI.reload(this) after connect returns and on the server thread. It returns a ReloadReport for inspection. An off-thread call on a connected plugin returns a partial report without applying changes; calling before connection completes or after disconnect throws IllegalStateException. UltiToolsAPI.reloadMessages(this) remains message-only and can be called from any thread.
  • Update checks that match the English or Chinese messages exactly. ul.help and ul.reload.not_found now mention connected external plugins; the latter still suggests /ul list only for modules. reload.framework_overrides_failed says 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.”
  • When registering an external responder, pass getName() as its owner. The advertised identifier comes from the plugin.yml name, 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 as My_Plugin, My Plugin and 2Plugin are 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 CloudPlayerLinks signatures are unchanged. In source tests that pass a literal null requester or owner, cast it to the intended type to select the overload; both overloads reject it. Default methods on the internal CloudPlayerLinks.Transport keep module-only test transports working. Only the framework transport implements the external plugin path.
  • The player-link documentation clarifies that LINK_NOT_PERMITTED can 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 connect retains its cause and includes the first diagnostic line, with its ULTI- code when available. Missing PlayerCacheSaver diagnostics name the author's class rather than a generated proxy. Entity scan summaries distinguish modules from external plugins. Container diagnostics print ULTI-6017 guidance once per bean alongside skip details, attribute dependent-bean failures to the earlier dependency error, and reserve ULTI-2008 for registration failures while deriving the bean name. (#1169, #1196, #1197)
  • ULTI-4020 now gives startup registration guidance to both module and external plugin authors. Closing container... is now logged at FINE instead of INFO; 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 disconnect still throws the first failure; disconnectAll still attempts all connections before throwing its first failure. Superseded module unload failures now use Failed 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, @Scheduled methods 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 ​

  • @UltiToolsTest no longer searches sibling compiler output directories automatically. If an output is packaged into your module's JAR, declare it as additionalModuleCodeSources = @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 uses BeanOverrides.replace to substitute the service. Normal greeting, storage and heartbeat behavior are unchanged. /dnotice help shows localized usage; /dnotice still 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 test and mvn verify alone do not apply this floor, including runs with -Dtest=…. To reproduce it locally, run mvn -B clean verify, mvn -B test -Dgroups=isolated -DexcludedGroups=, then mvn -B jacoco:check@check, without cleaning between steps. (#1192)

External Plugin API · Panel Integration · Testing Modules and Plugins · Framework Compatibility Notes · GitHub Release

Contributors

No contributors

Released under the MIT License.