Repository navigation
feat:扩展加载系统 - #9
Open
nullpepper wants to merge 8 commits into
Open
nullpepper wants to merge 8 commits into
nullpepper wants to merge 8 commits into
Conversation
# Conflicts: # common/src/main/java/dev/neovoxel/neobot/bot/BotListener.java # common/src/main/java/dev/neovoxel/neobot/game/GameEventListener.java
Keep this branch's script extension system (NeoVoxelDev#9) working on top of upstream's Discord/metrics/update/business-dispatch work. - common: keep the shared misc.EventListener base class; GameEventListener and BotListener now only extend it instead of duplicating register/reset/fireEvent/clearUuidContext. Upstream's dispatchPlayerStatus() and MinecraftChatEvent business dispatch are kept and go through the shared fireEvent(). - BotListener: adopt upstream's sendGroupMessage()/sendPrivateMessage() (textMessageSegments JSON + IllegalStateException when no client is connected) and route the rest through getPlugin(). - NeoBot: keep ExtensionsProvider/initExtensionsManager() plus the load/unload hooks in enable()/reload()/disable(), on top of upstream's null-safe lifecycle, update service and Discord startup notices. - Platform plugins: wire the extension manager (initExtensionsManager, getListenerMap, loadExtensions, unloadExtensions) next to upstream's getVersion()/getMinecraftVersion()/getBrand()/getOnlineMode(); the accessors tolerate a manager that was never initialized. NeoBotBukkit needs both the Map and the java.util.regex imports. - Drop the removed library/loader subsystem (LibraryProvider, VelocityLibraryLoader); extensions are the out-of-tree mechanism now. - ExtensionsManager: reloadable (listener map is cleared before loading, unload is null-safe and releases the pf4j plugin manager).
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.
No description provided.