Upgrading from 6.x to 7.0
This guide describes changes as of v7.0.0; see the 7.0.0 release notes for the overview.
Use this guide to migrate an UltiTools module from source to a rebuilt JAR. If you maintain a separate Paper plugin that calls UltiTools, also read Standalone Paper plugins.
Before you upgrade
- Back up the server before changing versions. Keep a matching set of the old framework and module JARs, configuration, worlds and module data. Include inventories and serialized item strings in files or databases: 7.0 item writes cannot be read by 6.x.
- Let every pending
/upm updatefinish one confirming start on the 6.x framework, before installing 7.0. This applies when an update has been staged but has not yet been confirmed by a start on 6.x. If you carry it across, 7.0 may refuse the staged JAR and the update may roll back to the previous 6.x JAR, which is also below the new API floor. Check the old start-up log before you proceed. See the pending-update limitation in the compatibility policy.
If you do not want a staged 6.x update, read Updates and uninstalls in 6.x first. The 6.x /upm uninstall cancels the update and unloads the module and deletes its JARs; it is not a revoke-only command.
Build target and module admission
As of v7.0.0, target Paper 26.3 build 258 with Java 25. Use a Java 25 toolchain and compile for Java 25 against com.ultikits:UltiTools-API 7.0 and io.papermc.paper:paper-api:26.3.build.258-stable. Use Maven provided (Gradle compileOnly) for the framework and Paper APIs supplied by the server; do not bundle those APIs. Review any other dependency that you previously expected UltiTools to supply. See Older Servers if you need to stay on an older target.
Set the UltiTools API level in the module JAR's root plugin.yml:
api-version: 700As of v7.0.0, admission requires an integer from 700 through the running framework's API level, inclusive. This is not Paper's api-version: '26.3'. Changing the old JAR's declaration cannot repair references to removed APIs. UltiTools loads the rebuilt JAR unchanged through its shared parent-first URLClassLoader: it no longer adapts bytecode, probes the server API or performs start-up and offline linkage audits. A skipped-container diagnostic reports a missing symbol the framework actually encountered; it does not recover missing capabilities.
With readable metadata and a main: entry, the floor and integer checks run before main-class resolution. If plugin.yml is unreadable or has no main:, fix that first. For API refusals, the start-up log distinguishes these cases:
| Declaration | What to check |
|---|---|
| Missing or not an integer | Search the log for has no valid api-version (Chinese: 未声明有效的 api-version). A missing or bare key shows <missing> in English or <缺失> in Chinese; a string such as '', '26.3', '1.21' or 'abc' is shown in quotes. Quoted integers such as '700' are accepted. |
Integer below 700, such as 630 | The log names the level and the minimum. Search for below the minimum (Chinese: 要求的最低级别). Install a rebuilt JAR. |
| Integer above the running framework's level | The installed framework is too old for the declared level. |
A JAR refused by the integer or minimum check never supplies main or helper classes to another module, and it counts once in Failed. Refusing one module does not stop other eligible modules that do not depend on it from loading. For example, if a 630 and a 700 JAR declare the same main class, the 700 copy can supply the classes even if its filename sorts later. The warning still names both copies; neither file is automatically deleted. Among admitted copies, filename order still matters.
For dependencies on other server plugins, declare the provider under depend or softdepend in the module descriptor. See Other plugins' classes and Runtime libraries.
Removed public APIs
Use this table to find 6.x calls and types to replace before you rebuild. The left column lists APIs that are no longer available as of v7.0.0, not APIs that are merely deprecated.
| 6.x API removed in 7.0 | 7.0 replacement |
|---|---|
AbstractCommand, AbstractTabExecutor, AbstractPlayerCommandExecutor, AbstractConsoleCommandExecutor | Extend BaseCommandExecutor and use @CmdTarget where needed; see Commands. |
i18n(...), MessageUtils, Localized, Language, FrameworkText, OfficialLanguageFiles, and the old language getters | Inject Messages; use LocaleResolver#fallback() if you specifically need the server fallback locale. |
@I18n, @UltiToolsModule(i18n = …) and supported() | Remove declarations, overrides and calls; ship messages/<locale>.yml. |
XVersionUtils, Sounds, Colors#getCode() | Use Paper and Adventure APIs; Colors#getGlassPaneMaterial() supplies the pane Material. See Native items and sounds. |
ItemStackBuilder | Build an ItemSpec, then call ItemRenderer#render(ItemSpec, Audience) or build and edit a native ItemStack directly. |
BaseInventoryPage, BasePaginationPage, IconWrapper, RenderNodeDiffer, DiffResult | Use DeclarativeGui with ItemSpec; for paging use State and GridView. The UI service renders the grid snapshots. |
BaseConfirmationPage, widgets.Confirm, InventoryConfirm, ChatConfirm, Buttons, ViewType, DependenceManagers#initInventoryAPI | Use ui.Confirm for a confirmation screen, a module-owned clickable prompt for chat confirmation and TextButton for a labelled button. No inventory API initialiser or ViewType replacement is needed. |
Toast, NotificationService#sendToastNotification | No drop-in toast helper. Use a title, action-bar or chat notification. |
Hologram | Spawn and manage a Paper TextDisplay. |
Old NotificationService sending method signatures and the no-argument InMemoryNotificationService constructor | Inject NotificationService and migrate to its void methods. |
Class-name filter methods and audit bridges on SecurityPolicy and ClassLoaderUtils | Remove these calls. There is no replacement filter or audit. JAR structure checks still exist; they are not a sandbox. |
Migration Table
This table lists the previous name, its status, and the replacement as recorded by the framework.
| Old name | Kind | Status | Replacement | Since |
|---|---|---|---|---|
| com.ultikits.ultitools.abstracts.AbstractCommand | class | removed | Implement BrigadierCommand or extend the annotated BaseCommandExecutor. | 7.0.0 |
| com.ultikits.ultitools.abstracts.AbstractCommandExecutor | class | removed | Extend BaseCommandExecutor and use annotation-based command mappings. | 6.3.0 |
| com.ultikits.ultitools.abstracts.AbstractCommandExecutor.CoolDownTickResult | class | removed | Extend BaseCommandExecutor and use @CmdCD for command cooldowns. | 6.3.0 |
| com.ultikits.ultitools.abstracts.AbstractCommendExecutor | class | removed | Extend BaseCommandExecutor and use annotation-based command mappings. | 6.3.0 |
| com.ultikits.ultitools.abstracts.AbstractConsoleCommandExecutor | class | removed | Extend BaseCommandExecutor and restrict the sender with @CmdTarget. | 7.0.0 |
| com.ultikits.ultitools.abstracts.AbstractDataEntity | class | removed | Extend BaseDataEntity with the entity's concrete ID type. | 6.3.0 |
| com.ultikits.ultitools.abstracts.AbstractPlayerCommandExecutor | class | removed | Extend BaseCommandExecutor and restrict the sender with @CmdTarget. | 7.0.0 |
| com.ultikits.ultitools.abstracts.AbstractTabExecutor | class | removed | Extend BaseCommandExecutor and use Brigadier argument suggestions or a completion provider. | 7.0.0 |
| com.ultikits.ultitools.abstracts.command.CommandTabCompletionDispatch | class | removed | Use Brigadier argument suggestions or register a completion provider. | 7.0.0 |
| com.ultikits.ultitools.abstracts.command.parser.EnchantmentParser | class | removed | Use the native Brigadier Enchantment argument mapping. | 7.0.0 |
| com.ultikits.ultitools.abstracts.command.parser.GameModeParser | class | removed | Use the native Brigadier GameMode argument mapping. | 7.0.0 |
| com.ultikits.ultitools.abstracts.command.parser.LocationParser | class | removed | Use the native Brigadier Location argument mapping; locations use coordinates in the command source's world. | 7.0.0 |
| com.ultikits.ultitools.abstracts.command.parser.WorldParser | class | removed | Use the native Brigadier World argument mapping. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.BaseConfirmationPage | class | removed | Use ui.Confirm with UiService for an inventory confirmation screen. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.BaseConfirmationPage.Builder | class | removed | Use the ui.Confirm request builder and send the request through UiService. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.BaseInventoryPage | class | removed | Implement a DeclarativeGui and express inventory cells with ItemSpec. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.BasePaginationPage | class | removed | Store the current page in State and render its slice using a declarative GridView. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.declarative.core.DiffResult | class | removed | Describe the desired grid as declarative widgets and let UiService render its snapshots. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.declarative.core.DiffResult.Builder | class | removed | Describe the desired grid as declarative widgets instead of building render diffs. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.declarative.core.DiffResult.RenderNodeMove | class | removed | Change widget order in the declarative grid instead of recording render-node moves. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.declarative.core.DiffResult.RenderNodeUpdate | class | removed | Update widget state instead of recording render-node updates. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.declarative.engine.RenderNodeDiffer | class | removed | Describe the desired grid as declarative widgets and let UiService render its snapshots. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.declarative.widgets.IconWrapper | class | removed | Use ItemSpec for inventory icons. | 7.0.0 |
| com.ultikits.ultitools.abstracts.gui.declarative.widgets.IconWrapper.Builder | class | removed | Use ItemSpec.builder(Material) to describe an inventory icon. | 7.0.0 |
| com.ultikits.ultitools.abstracts.guis.OkCancelPage | class | removed | Use ui.Confirm with UiService for an inventory confirmation screen. | 6.3.0 |
| com.ultikits.ultitools.abstracts.guis.PagingPage | class | removed | Store the current page in State and render its slice using a declarative GridView. | 6.3.0 |
| com.ultikits.ultitools.annotations.I18n | annotation | removed | Remove @I18n and supported() overrides; ship messages/<locale>.yml and inject Messages. | 7.0.0 |
| com.ultikits.ultitools.annotations.command.OptionalParam | annotation | removed | Declare a separate @CmdMapping format for each accepted argument shape. | 6.3.0 |
| com.ultikits.ultitools.aop.AopProxyBeanPostProcessor | class | removed | Register an advisor with AopProxyResolver#addAdvisor instead of installing a proxying bean post-processor. | 6.3.0 |
| com.ultikits.ultitools.aop.CglibProxyFactory | class | removed | Use the container's AOP support rather than creating CGLIB proxies; the framework now uses ByteBuddy. | 6.3.0 |
| com.ultikits.ultitools.entities.ApiResponse | class | removed | Remove dependencies on the retired UltiCloud protocol v1 response envelope. There is no drop-in replacement. | 6.4.0 |
| com.ultikits.ultitools.entities.Buttons | class | removed | Use a TextButton label or framework label keys; there is no equivalent enum. | 7.0.0 |
| com.ultikits.ultitools.entities.Language | class | removed | Use Messages for module text, or LocaleResolver#fallback() for the server fallback locale. | 7.0.0 |
| com.ultikits.ultitools.entities.Sounds | class | removed | Use native Paper org.bukkit.Sound constants, or Adventure Sound when calling NotificationService. | 7.0.0 |
| com.ultikits.ultitools.entities.TokenEntity | class | removed | Remove dependencies on the retired v1 user token; server linking is the operator's /ulticloud login and has no module-facing replacement. | 6.4.0 |
| com.ultikits.ultitools.entities.ViewType | class | removed | Describe the controls in the declarative GUI or use ui.Confirm for a confirmation request. | 7.0.0 |
| com.ultikits.ultitools.entities.vo.ServerEntityVO | class | removed | Remove dependencies on the retired UltiCloud protocol v1 server record; link the server with /ulticloud login. | 6.4.0 |
| com.ultikits.ultitools.entities.vo.ServerEntityVO.ServerEntityVOBuilder | class | removed | Remove code that constructs v1 server records; link the server with /ulticloud login. | 6.4.0 |
| com.ultikits.ultitools.interfaces.Localized | class | removed | Inject Messages and ship messages/<locale>.yml; remove supported() overrides. | 7.0.0 |
| com.ultikits.ultitools.interfaces.ObjectConfigSerializer | class | removed | Implement ConfigConverter and register it with @ConfigConverterFor. | 6.4.0 |
| com.ultikits.ultitools.interfaces.Parser | class | removed | Implement ConfigConverter and register it with @ConfigConverterFor. | 6.4.0 |
| com.ultikits.ultitools.interfaces.TempListener.PlayerTempListenerBuilder | class | removed | Start with TempListener.common(EventType.class) and filter by the relevant player. | 6.3.0 |
| com.ultikits.ultitools.interfaces.VersionWrapper | class | removed | Use native Paper and Adventure APIs for items, sounds and text. | 6.3.0 |
| com.ultikits.ultitools.interfaces.impl.DefaultVersionWrapper | class | removed | Use native Paper and Adventure APIs for items, sounds and text. | 6.3.0 |
| com.ultikits.ultitools.interfaces.impl.PlayerTempListener | class | removed | Start with TempListener.common(EventType.class) and filter by the relevant player. | 6.3.0 |
| com.ultikits.ultitools.interfaces.impl.logger.BukkitLog | class | removed | Use UltiToolsPlugin#getLogger() for module logs, or a JDK logger for standalone code. | 6.2.0 |
| com.ultikits.ultitools.interfaces.impl.logger.BukkitLogFactory | class | removed | Use UltiToolsPlugin#getLogger() for module logs, or obtain a JDK logger directly. | 6.2.0 |
| com.ultikits.ultitools.interfaces.impl.pasers.ConfigParser | class | removed | Implement ConfigConverter and register it with @ConfigConverterFor. | 6.4.0 |
| com.ultikits.ultitools.interfaces.impl.pasers.DefaultConfigParser | class | removed | Use the built-in config conversion or implement ConfigConverter with @ConfigConverterFor for a custom type. | 6.4.0 |
| com.ultikits.ultitools.interfaces.impl.pasers.StringHashMapParser | class | removed | Use the built-in config conversion or implement ConfigConverter with @ConfigConverterFor for a custom type. | 6.4.0 |
| com.ultikits.ultitools.manager.CommandExecutionManager.CommandResult | class | removed | Remove dependencies on the protocol v1 command result; there is no module-facing replacement for it. | 6.4.0 |
| com.ultikits.ultitools.manager.SpigotVersionManager | class | removed | Compile against the supported Paper API and use native Paper and Adventure APIs rather than matching a version wrapper. | 6.2.0 |
| com.ultikits.ultitools.utils.ItemStackBuilder | class | removed | Build an ItemSpec and call ItemRenderer#render(ItemSpec, Audience), or use a native Paper ItemStack directly. | 7.0.0 |
| com.ultikits.ultitools.utils.MessageUtils | class | removed | Inject Messages and send dotted catalogue keys with typed arguments. | 7.0.0 |
| com.ultikits.ultitools.utils.SimpleHttpClient | class | removed | Use a JDK or module-owned HTTP client for general HTTP requests. | 6.4.0 |
| com.ultikits.ultitools.utils.SimpleHttpClient.Response | class | removed | Use the response type of your JDK or module-owned HTTP client. | 6.4.0 |
| com.ultikits.ultitools.utils.UltiCloudRequests | class | removed | For player linking, obtain CloudPlayerLinks via UltiTools#getCloudPlayerLinks(). There is no general v1 REST replacement. | 6.4.0 |
| com.ultikits.ultitools.utils.UltiCloudRequests.Outcome | class | removed | Use the outcome returned by the corresponding CloudPlayerLinks operation; there is no generic v1 REST outcome. | 6.4.0 |
| com.ultikits.ultitools.utils.UltiCloudRequests.Result | class | removed | Use the result returned by the corresponding CloudPlayerLinks operation; there is no generic v1 REST result. | 6.4.0 |
| com.ultikits.ultitools.utils.XVersionUtils | class | removed | Replace item, sound, enchantment and text helpers with native Paper and Adventure APIs. | 7.0.0 |
| com.ultikits.ultitools.websocket.ExponentialBackoffStrategy | class | removed | Leave panel reconnects to the built-in framework session; there is no module-facing replacement strategy. | 6.4.0 |
| com.ultikits.ultitools.websocket.ExponentialBackoffStrategy.Builder | class | removed | Leave panel reconnects to the built-in framework session; there is no module-facing strategy builder. | 6.4.0 |
| com.ultikits.ultitools.websocket.ReconnectStrategy | class | removed | Leave panel reconnects to the built-in framework session; there is no module-facing replacement strategy. | 6.4.0 |
| com.ultikits.ultitools.websocket.UltiPanelWebSocketClient | class | removed | Use PanelResponderRegistry to respond to module-owned messages on the built-in connection. | 6.4.0 |
| com.ultikits.ultitools.websocket.WebsocketClient | class | removed | Use PanelResponderRegistry for module-owned panel messages, or use a module-owned client for an unrelated WebSocket connection. | 6.2.0 |
| com.ultikits.ultitools.widgets.Confirm | class | removed | Use ui.Confirm with UiService for an inventory confirmation screen, or implement a module-owned clickable chat prompt. | 7.0.0 |
| com.ultikits.ultitools.widgets.Hologram | class | removed | Spawn and manage a native Paper TextDisplay. | 7.0.0 |
| com.ultikits.ultitools.widgets.Toast | class | removed | Use a title, action-bar or chat notification; there is no drop-in toast helper. | 7.0.0 |
| com.ultikits.ultitools.widgets.Toast.Style | class | removed | Choose a title, action-bar or chat presentation; there is no replacement advancement-toast style. | 7.0.0 |
| com.ultikits.ultitools.widgets.impl.ChatConfirm | class | removed | Implement a module-owned clickable chat prompt. | 7.0.0 |
| com.ultikits.ultitools.widgets.impl.InventoryConfirm | class | removed | Use ui.Confirm with UiService for an inventory confirmation screen. | 7.0.0 |
Commands
As of v7.0.0, UltiTools compiles annotation-based commands into Brigadier trees and registers them through Paper's command lifecycle. Update the old executors and check argument parsing and completion against Migrating from 6.x. Also check Rejected formats; a format accepted by 6.x can now prevent that module from loading.
Text and languages
As of v7.0.0, Messages is the only text system. Ship new catalogues with the module and migrate any operator edits by hand.
- Language files. Move translations you still need from
lang/tosrc/main/resources/messages/<locale>.yml, with lowercase dotted keys and MiniMessage values. Only.ymlis read. The new catalogues do not interpret§or&colour codes or import legacy files. Convert operator edits into override files; do not edit the generated defaults. - Source language. Declare
source-languagein the module'splugin.ymlif the module's own texts are not English; it defaults toen. - Sending text. Inject
com.ultikits.ultitools.text.Messageswith@Autowired, build keys withmessages.key(path)and send withmessages.send(...), to resolve the recipient’s language. This follows the client language by default, subject to the operator’s language settings and the fallback rules. Pass player or operator input asArg.string, never as part of a template. Usemessages.shared(Text)for entity names, text displays and shared boss bars. - Defaults. New installations ship
language: autoandfallback-language: auto; on a host whose time zone is not a China zone, the console and the fallback are English. See Language selection. - Legacy text APIs. Replace
i18n(...)withMessages. If you need the server fallback language, injectLocaleResolverand callfallback()instead of usinggetLanguageCode()orgetConfiguredLanguage(). - Language declarations. Remove
supported()overrides and old language declarations. Ship the supported locales with the module instead.
Check your code against the complete list of removed legacy text types and entry points. The migration table also covers configuration comments and language files.
Native items and sounds
As of v7.0.0, the framework no longer supplies XSeries or the cross-version material and sound layer. Colors remains and gains getGlassPaneMaterial(). If you maintain source for both 6.x and 7.0, use native constants such as Material.CYAN_STAINED_GLASS_PANE directly.
To turn a material name into an item in 7.0, use Material.matchMaterial. It accepts current material names such as DIAMOND and namespaced keys such as minecraft:stone; there is no legacy-name lookup or fallback item. Reject null, block-only and air results before passing the material to ItemSpec.builder, as shown in Item construction and storage.
The following native replacements apply as of v7.0.0. Use org.bukkit.Material, org.bukkit.Sound, org.bukkit.enchantments.Enchantment, org.bukkit.inventory.ItemFlag and Adventure's net.kyori.adventure.text.Component:
| 6.x approach | Native replacement for 7.0 |
|---|---|
XSeries material / XVersionUtils item factory | new ItemStack(Material.STONE), or itemRenderer.render(ItemSpec.builder(Material.STONE).build(), player) |
XVersionUtils.getSound(Sounds.ENTITY_ENDERMAN_TELEPORT) passed to playSound | player.playSound(player.getLocation(), Sound.ENTITY_ENDERMAN_TELEPORT, volume, pitch) (keep the caller's existing volume and pitch) |
| XSeries enchantment used for a hidden glow | ItemSpec.builder(Material.PAPER).glint(true).build(), then render it (visual glint without adding an enchantment) |
XVersionUtils.sendActionBar(player, "Ready") | player.sendActionBar(Component.text("Ready")) |
Call sound and enchantment APIs during gameplay, not in static initializers or enum constructors. For a purely visual glint, use ItemSpec.Builder#glint(true), or ItemMeta#setEnchantmentGlintOverride(Boolean) on an existing stack; neither adds an enchantment. For colored glass, use new ItemStack(Colors.CYAN.getGlassPaneMaterial()); existing GUI glass colors and button materials remain unchanged.
XVersionUtils replacement table
As of v7.0.0, replace all 15 public methods on the old class as follows on Paper 26.3. Here color is a retained Colors value, and item constructors are org.bukkit.inventory.ItemStack. “No direct equivalent” means no single Paper call preserves the whole helper's behaviour; keep the stated checks in your own code.
| Removed 6.x method | Paper 26.3 replacement and behaviour to retain |
|---|---|
getColoredPlaneGlass(Colors color) | new ItemStack(color.getGlassPaneMaterial()); for a fixed color use e.g. Material.CYAN_STAINED_GLASS_PANE |
getColoredWool(Colors color) | new ItemStack(Material.valueOf(color.name() + "_WOOL")) |
getSign() | new ItemStack(Material.OAK_SIGN) |
getEndEye() | new ItemStack(Material.ENDER_EYE) |
getEmailMaterial(boolean isRead) | new ItemStack(isRead ? Material.FILLED_MAP : Material.PAPER) |
getHead(OfflinePlayer player) | new ItemStack(player.isOp() ? Material.DRAGON_HEAD : Material.PLAYER_HEAD); the old helper only chose the head type and did not set a player's skin |
getGrassBlock() | new ItemStack(Material.GRASS_BLOCK) |
registerNewObjective(Scoreboard scoreboard, String name, String criteria, String displayName) | No direct equivalent: first call scoreboard.getObjective(name) and return it if present; otherwise call scoreboard.registerNewObjective(name, Criteria.DUMMY, displayName). The old helper ignored criteria and always created a dummy objective |
getSound(Sounds sound) | Use Sound.ENTITY_ENDERMAN_TELEPORT or another matching native constant; replace the deleted Sounds type in callers too |
getBed(Colors bedColor) | new ItemStack(Material.valueOf(bedColor.name() + "_BED")) |
getItemDurability(ItemStack itemStack) | No direct equivalent: if itemStack.getItemMeta() is org.bukkit.inventory.meta.Damageable, return itemStack.getType().getMaxDurability() - damageable.getDamage(); otherwise return 0. getDamage() alone is damage taken, not remaining durability |
getItemInHand(Player player, boolean isMainHand) | isMainHand ? player.getInventory().getItemInMainHand() : player.getInventory().getItemInOffHand() |
sendActionBar(Player player, String message) | player.sendActionBar(Component.text(message)) for literal text |
sendPlayerList(Player player, String header, String footer) | player.setPlayerListHeaderFooter(header, footer) preserves the string call; for literal Adventure text use player.sendPlayerListHeaderAndFooter(Component.text(header), Component.text(footer)) |
getBlockFace(Block placedBlock) | No direct equivalent: read placedBlock.getBlockData(); if it is org.bukkit.block.data.Directional, return directional.getFacing(), otherwise return org.bukkit.block.BlockFace.NORTH |
A module retaining XSeries must bundle its own dependency and relocate its packages with Maven Shade or Gradle Shadow (shade + relocate). Do not rely on the framework to supply it or declare it only as provided/compileOnly: Paper's plugin.yml libraries: mechanism is not available to UltiTools modules loaded by the framework. The 6.x runtime-library instructions are not a supply guarantee for 7.0.
Item construction and storage
As of v7.0.0, ItemStackBuilder is removed. Describe the item with ItemSpec and use an injected ItemRenderer to render it in the viewer’s language.
Names and lore move into the module's language files as MiniMessage. A 6.x builder call such as
ItemStack item = ItemStackBuilder.of(Material.DIAMOND).name("&aShop").lore("&7Click to buy").amount(3).glow().build();becomes, with itemRenderer injected by @Autowired:
ItemSpec spec = ItemSpec.builder(Material.DIAMOND)
.name(messages.key("shop.name"))
.addLore(messages.key("shop.click"))
.amount(3)
.glint(true)
.build();
ItemStack item = itemRenderer.render(spec, player);The remaining builder methods map as follows. Here builder is an ItemSpec.Builder, stack is a rendered or existing ItemStack, and key2 and key3 are MessageKeys from the module's language files:
| 6.x call | 7.0 replacement |
|---|---|
.amount(n) | builder.amount(n); values outside 1 to 99 throw IllegalArgumentException instead of being clamped |
.lore(...) / .addLore(...) | builder.lore(List.of(Text.of(key2), Text.of(key3))) replaces all lines; builder.addLore(key2) appends one; fixed components use Text.literal(component) |
.glow() | builder.glint(true); no enchantment is added |
.enchant(e, lvl) | builder.data(DataComponentTypes.ENCHANTMENTS, ItemEnchantments.itemEnchantments().add(e, lvl).build()) |
.removeEnchant(e) | stack.removeEnchantment(e) after rendering |
.hideAttributes() | builder.hiddenInTooltip(Set.of(DataComponentTypes.ATTRIBUTE_MODIFIERS)) |
.flags(flags) | stack.editMeta(meta -> meta.addItemFlags(flags)) after rendering |
.hideAll() | stack.editMeta(meta -> meta.addItemFlags(ItemFlag.values())); like 6.x, the name and lore stay visible. builder.tooltipHidden(true) hides the whole tooltip, name and lore included |
.unbreakable() | builder.data(DataComponentTypes.UNBREAKABLE) |
.customModelData(n) | builder.data(DataComponentTypes.CUSTOM_MODEL_DATA, CustomModelData.customModelData().addFloat(n).build()) |
.leatherColor(c) | builder.data(DataComponentTypes.DYED_COLOR, DyedItemColor.dyedItemColor(c)) |
.skullOwner(player) | builder.data(DataComponentTypes.PROFILE, ResolvableProfile.resolvableProfile(player.getPlayerProfile())) |
.meta(consumer) / .item(consumer) | stack.editMeta(consumer) / consumer.accept(stack) after rendering |
ItemStackBuilder.of(existingStack) | existingStack.clone(), then Paper's setData and unsetData |
.build() / .buildClone() | itemRenderer.render(spec, player) creates a new stack on every call; stack.clone() copies an existing one |
ItemStackBuilder.of(String) | Material m = Material.matchMaterial(name); then m != null && m.isItem() && !m.isAir() ? ItemSpec.builder(m) : null |
ItemStackUtils keeps its five methods and can read the Bukkit object streams it wrote in 6.x, so those stored values need no advance conversion. This does not cover module-specific formats. In 7.0 it writes Paper item bytes encoded as Base64, which 6.x cannot read. Back up items and inventories before upgrading, and do not automatically overwrite a failed read with an empty inventory. Restore a backup from the matching version if you roll back. See Items and Item Storage.
Scheduling and declarative GUI
As of v7.0.0, scheduling and declarative screens use services owned by the module instance.
- Scheduling. Inject
com.ultikits.ultitools.scheduling.Schedulerwith@Autowired; each module instance owns one, and unloading the module cancels its tasks.@Scheduledruns on it. Async repeating tasks run at a fixed rate, and tasks bound to an entity end when the entity is removed (for a player, on disconnect). See Scheduler API. The framework's own work moving onto its scheduler requires no change in module code; its visible effects are listed under Framework-scheduled work. - Declarative GUI.
DeclarativeGuino longer inherits obliviate'sGui. The constructor takesUiService ui,Scheduler scheduler,Player viewer,String id,Text titleandint rows(a fixed count from 1 to 6);InventoryTypeconstructors,IconWrapper,RenderNodeDiffer,DiffResultandgetPlayer()(nowviewer()) are gone;ItemDisplaytakes anItemSpec, and clicks useonClick(GridAction). See What changes in 7.0.
Legacy chest pages and confirmation widgets
As of v7.0.0, there is no compatibility bridge for the old chest pages or confirmation widgets, and DependenceManagers#initInventoryAPI is removed. The framework JAR no longer bundles obliviate-invs or UniversalScheduler. If you depended on the framework to supply mc.obliviate.* or com.github.Anon8281.*, package the libraries yourself or rewrite the code. Packaging them does not bring back removed framework APIs. Colors remains.
| 6.x | 7.0 |
|---|---|
BaseInventoryPage | DeclarativeGui, see Declarative GUI |
BasePaginationPage | A State that holds the page number and a GridView that shows the slice, see Declarative GUI |
BaseConfirmationPage, InventoryConfirm, Confirm.gui(...) | Confirm of the UI service, see UI: Intents and Sessions |
ChatConfirm, Confirm.chat(...) | The module sends its own clickable chat prompt, see UI: Intents and Sessions |
Buttons, ViewType | No replacement type; use a TextButton label or the framework label keys |
For the 6.x screens, see the archived v6.5.0 guide.
Toasts and holograms
As of v7.0.0, Toast, NotificationService#sendToastNotification and Hologram are removed.
Toasts. The advancement-based popup depended on deprecated, version-unstable server internals, and message text containing quotes could break its generated JSON. There is no replacement helper. NotificationService offers sendTitleNotification, sendSubTitleNotification, sendActionBarNotification, sendBossBarNotification and sendMessageNotification (a chat message); some overloads also take a Sound. Use one of these, or chat, instead. In 7.0 these methods take Text and Adventure types; see Notification service.
Holograms. Hologram spawned an invisible armour stand for each text line. Use Paper's native TextDisplay entity instead; a single display can contain multiple lines. The following example disables entity persistence:
World world = location.getWorld();
if (world == null) {
throw new IllegalArgumentException("The display location must have a world");
}
TextDisplay display = world.spawn(location, TextDisplay.class, d -> {
d.text(messages.shared(Text.of(messages.key("hologram.welcome"))));
d.setBillboard(Display.Billboard.CENTER);
d.setPersistent(false);
});
// later: display.remove();- Call
World#spawnon the thread that owns the location. From another thread, switch first with the module's injectedScheduler, for examplescheduler.region(location).run(...); see Scheduler API. Location#getWorld()can returnnull, so check it before spawning, as the example does.messagesis the module's injectedcom.ultikits.ultitools.text.Messagesservice. Itsshared(Text)method returns text for objects every player sees, such as a text display.
The caller owns the display and removes it with display.remove() when it is no longer needed.
Notification service
As of v7.0.0, the old notification signatures are no longer available. Update the calls and recompile; remove any code that checks their former boolean results.
The service renders each Text in the recipient's language. It has twelve sending methods: four abstract ones and eight default overloads. The signatures change as follows:
| Before 7.0 | As of v7.0.0 |
|---|---|
String message, title, subtitle and action-bar arguments | com.ultikits.ultitools.text.Text |
Boss-bar int seconds | A positive java.time.Duration; the default stays 25 seconds |
org.bukkit.Sound | Adventure net.kyori.adventure.sound.Sound, played with the caller's source, volume and pitch |
Title fade-in, stay and fade-out as int ticks | Adventure Title.Times; the defaults stay 500 ms, 2.5 s and 1 s |
boolean return values | void; a null required argument throws NullPointerException naming the parameter, a zero or negative duration throws IllegalArgumentException |
Two overloads taking a caller-owned Bukkit BossBar | One full overload taking Adventure BossBar.Color and BossBar.Overlay |
new InMemoryNotificationService() | new InMemoryNotificationService(Messages, Scheduler), or preferably inject NotificationService |
Bean names inMemoryNotificationService and the interface's class-name string | Look up by type: @Autowired NotificationService or getBean(NotificationService.class) |
A 6.x call such as
notificationService.sendBossBarNotification(player, "Arena closes soon", 10);becomes, with messages and notifications injected by @Autowired:
notifications.sendBossBarNotification(player, Text.of(messages.key("arena.closing")), Duration.ofSeconds(10));Move the text into the module's language file. Pass player or operator input as Arg.string with a <name> placeholder in the catalogue, never by joining it into the template; use Text.plain(string) for fixed text. A second boss-bar notification now replaces the bar's text, colour and overlay and restarts its single countdown; in 6.x the text stayed unchanged and overlapping countdowns made the bar disappear early. See Notifications for the threads each method uses and the known limitations.
Configuration saving and JSON flushes
UltiToolsPlugin#saveConfig(path, type) threw NullPointerException in 6.x when the path was not registered for the module. As of v7.0.0 it throws IllegalStateException naming the module and path, and writes no file. Register the configuration entity before saving it. If 6.x code caught NullPointerException to detect a missing registration, check that getConfig(path, type) returns non-null instead. Do not catch IllegalStateException for this: saveConfig throws the same type when it is called off the server thread. A registered entity of another type still throws ClassCastException. See save().
In 6.x a negative datasource.flushRate made the JSON store flush once in the background shortly after start-up; later changes reached the table files only at a normal server stop. As of v7.0.0 a negative value starts no periodic flush, so that one background flush no longer happens, and UltiTools logs one warning at start-up. A normal server stop still attempts a final checkpoint, as it did in 6.x. To restore periodic flushes, set a positive number of seconds and restart the server. See Operating JSON Storage.
Rebuild and check the artifact
- Rebuild from the migrated sources with both 7.0 build dependencies. If you raise the module's
api-version, raise the module's own MAJOR version under the module versioning rules. - Open the built JAR. Check its root
plugin.ymlfor the intendedmain, moduleversionand integerapi-version. Check that newly bundled catalogues are undermessages/<locale>.ymland that required private libraries are packaged without bundling the framework or Paper APIs. - Use Checking an artifact to compare bytecode references against the UltiTools version you claim to support, not simply the one you compiled against. The manual tool is not the removed loader audit and does not prove runtime compatibility.
- On a test server matching the new baseline, exercise commands with both player and console senders where applicable, localized output, screens and confirmations, scheduled tasks and reads of representative saved data. Check the start-up log as well as the features: admission is not proof that every call site works.
Apply and recover on the server
- After the last confirming 6.x start, stop the server. Replace old module JARs with the rebuilt versions in
plugins/UltiTools/plugins/, keeping only the intended copy of each. Replace the framework JAR and start the server on the new Paper and Java baseline. A JAR change requires a full restart;/ul reloadonly reloads configuration and applicable message overrides. - As of v7.0.0,
/upm install,/upm updateand/upm uninstallqueue changes for the next start. Review them with/upm pending, and undo an eligible request with/upm revoke <module>before restarting. An uninstall no longer stops the running module immediately. If a module adds custom enchantments, contributes tags or bundles data packs, declare them in a bootstrap hook rather than inregisterSelf(). Back up worlds before removing a module that provided this content and review the uninstall warnings. - Let start-up finish. As of v7.0.0, queued file changes are applied during bootstrap; installs and updates are only confirmed when the expected JAR and version load during enable. A failed or interrupted start can cause the framework to remove the unconfirmed install or restore the previous JAR for an unconfirmed update. Read the start-up log and
/upm pendingbefore retrying; entries requiring operator action are not revocable. See Application and recovery at start-up. - Module JAR recovery does not rewind data. A downgrade in place to 6.x is unsupported; if you need to return to 6.x, restore the matching pre-upgrade backup instead of reusing files written by 7.0.
Standalone Paper plugins
As of v7.0.0, a standalone Paper plugin that uses the External Plugin API should also rebuild for the new baseline and migrate the UltiTools APIs it calls. Keep its JavaPlugin entry point and UltiToolsAPI.connect(this) in onEnable(), with the Paper plugin dependency on UltiTools declared in its descriptor. Install it as a Paper plugin, not as an UltiTools module.
The module JAR's integer api-version requirement, module bootstrap descriptor and /upm steps do not apply to that plugin. Its descriptor and loading are Paper's responsibility.