#Geyser Extension Development question

11 messages · Page 1 of 1 (latest)

pearl meadow
#

Hello!
I'm updating my spigot plugin that adds custom items to support geyser.
Is it possible to create a hybrid geyser/spigot plugin such that geyser loads it from the spigot plugin directory and not from it's own extension directory?
I'd rather not make a standalone geyser extension since it would be a bit difficult for my users.
Thanks!

marsh swan
# pearl meadow Hello! I'm updating my spigot plugin that adds custom items to support geyser. I...

You can use Geysers api to register custom items. Alternatively, you can provide users with mapping files that do the same - or an extension.

Main benefit of making an extension:

  • works on all geyser platforms: proxies/standalone/Geyser-Spigot etc
    Same for mapping files, although there users might need to manually merge then if they wish to use multiple mappings files for the same base item.

Benefit of using the Geyser api in your plugin:

  • most seamless option, but will only work with Geyser-Spigot
pearl meadow
#

It's not really working out for me, perhaps i'm doing something wrong since the documentation isn't really that clear.
this is the actual code i'm working on https://github.com/spartacus04/jext-reborn/blob/master/src/main/java/me/spartacus04/jext/integrations/unique/GeyserIntegration.kt

no event is actually fired

GitHub

Level up your server with custom music discs - just like vanilla jukebox, but better!". I mantain this in my free time. - spartacus04/jext-reborn

marsh swan
#

there's an issue currently where the @Subscribe annotation isn't reliably working - try subscribing to the event manually

pearl meadow
#

alr, that worked. Thank you!
btw I was wondering, since my plugin already handles reloading for java, is there a way to register custom items without using the GeyserDefineCustomItemsEvent?

ivory tuskBOT
marsh swan
#

Wdym by "handles reloading for Java"?
There is no way to register items without the event

pearl meadow
marsh swan
#

Geyser's item system does not support adding items at runtime - your best bet would be to instruct users to reload/restart the server