Skip to content

feat:扩展加载系统 - #9

Open
nullpepper wants to merge 8 commits into
NeoVoxelDev:masterfrom
nullpepper:master
Open

nullpepper wants to merge 8 commits into
NeoVoxelDev:masterfrom
nullpepper:master

Conversation

@nullpepper

Copy link
Copy Markdown

No description provided.

@Aurelian2842 Aurelian2842 self-assigned this Jan 3, 2026
@Aurelian2842 Aurelian2842 added the size: l Large change, ~200-500 lines label Jan 3, 2026
# Conflicts:
#	common/src/main/java/dev/neovoxel/neobot/bot/BotListener.java
#	common/src/main/java/dev/neovoxel/neobot/game/GameEventListener.java
@Aurelian2842 Aurelian2842 added the status: testing Ready for testing / QA label Jan 3, 2026
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: l Large change, ~200-500 lines status: testing Ready for testing / QA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants