Repository navigation
Fix SCore dependency name in paper-plugin.yml and onDisable NPE - #314
Merged
BlitzOffline merged 1 commit intoNov 11, 2026
Merged
Conversation
- paper-plugin.yml declared the SCore dependency as 'Score', which does not
match the plugin's actual name ('SCore'), so the dependency entry was never
resolved.
- onDisable() called itemHooks.clear() unconditionally. When onEnable() bails
out early (e.g. PlaceholderAPI missing), itemHooks is still null and
disabling throws a NullPointerException.
BlitzOffline
approved these changes
Nov 11, 2026
Namnarak
added a commit
to CyoriaSMP-Team/DeluxeMenus-Folia
that referenced
this pull request
Nov 12, 2026
Namnarak
added a commit
to CyoriaSMP-Team/DeluxeMenus-Folia
that referenced
this pull request
Nov 12, 2026
Namnarak
added a commit
to CyoriaSMP-Team/DeluxeMenus-Folia
that referenced
this pull request
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small fixes found while reviewing the Paper migration (#228).
Changes
paper-plugin.yml:Score→SCore. The SCore plugin is namedSCore, so the oldScoreentry never matched anything. The ExecutableItems/ExecutableBlocks hooks still work today, because they resolvecom.ssomar.score.*through the declared ExecutableItems plugin's classloader. With this fix the dependency is declared correctly, so load order and class visibility no longer depend on that fallback.DeluxeMenus#onDisable: null-guarditemHooks. IfonEnablestops early (for example when PlaceholderAPI is missing),itemHooksis never set and disabling throws:Testing
On a local Paper 26.2 (build 112) server with PlaceholderAPI 2.12.3, stub
SCore/ExecutableItemsplugins, and a stub Bukkit addon that depends on DeluxeMenus:/dm,/dm listand/dm reloadwork from the console.executableitemsitem hook resolves SCore classes and builds an item, both before and after the rename.DeluxeMenusOpenMenuEventand callDeluxeMenus#getItemHook.