Skip to content

Update XSeries to 13.7.1 and relocate its package to fix plugin confl… - #16

Open
tommasov03 wants to merge 2 commits into
TechnoVisionDev:masterfrom
ScarletMC:master
Open

Update XSeries to 13.7.1 and relocate its package to fix plugin confl…#16
tommasov03 wants to merge 2 commits into
TechnoVisionDev:masterfrom
ScarletMC:master

Conversation

@tommasov03

Copy link
Copy Markdown

…icts

XMaterial's static initializer threw NumberFormatException while parsing newer Minecraft version strings (up to 26.2), which the old bundled XSeries 6.0.1 couldn't handle. Because the com.cryptomorin.xseries package was shaded unrelocated, Bukkit's cross-plugin class resolution let other plugins (e.g. UltraCoinFlip) pick up HomeGUI's broken XMaterial class via Class.forName, crashing their enable and disabling their commands too.

Bumping to XSeries 13.7.1 (tested against Spigot 26.2) restores support for the full 1.8-26.2 range, and relocating the shaded package to com.technovision.homegui.libs.xseries isolates it so it can no longer leak into or collide with other plugins' classloading.

…icts

XMaterial's static initializer threw NumberFormatException while parsing
newer Minecraft version strings (up to 26.2), which the old bundled
XSeries 6.0.1 couldn't handle. Because the com.cryptomorin.xseries package
was shaded unrelocated, Bukkit's cross-plugin class resolution let other
plugins (e.g. UltraCoinFlip) pick up HomeGUI's broken XMaterial class via
Class.forName, crashing their enable and disabling their commands too.

Bumping to XSeries 13.7.1 (tested against Spigot 26.2) restores support
for the full 1.8-26.2 range, and relocating the shaded package to
com.technovision.homegui.libs.xseries isolates it so it can no longer
leak into or collide with other plugins' classloading.
Copilot AI review requested due to automatic review settings July 25, 2026 15:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…sk I/O

InventoryClickEvent was only cancelled when the clicked slot held an
item, and InventoryDragEvent was never handled at all, so a player
could drag or click a real item into an empty HomeGUI/ChangeIconGUI
slot; with no InventoryCloseEvent to return it, the item was simply
lost. Both GUIs now cancel every click and drag unconditionally.

Also removed the per-home YAML file reload in PlayerDataReader.getItem
(it was reading the player's icon data file from disk once per home
in the /home GUI) in favor of loading it once per GUI open, hoisted
the repeated config lookups out of HomeGUI's item loop, guarded
against a null Material lookup that could NPE, and simplified the
redundant modulo loop in calculateSize().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants