Nexo problems
Reflective NexoItems hook — plugin not loaded, API fails, ID changed, AIR.
Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.
Nexo support is optional. Without Nexo = plain ItemStack in YAML.
Plugin not loaded
getPlugin("Nexo") == null → hook disabled, no error log. getNexoId returns null. Vanilla listings work.
softdepend: [Nexo, ...]. Nexo must be in plugins/ and start with the server.
API reflection fails
Expected class: com.nexomc.nexo.api.NexoItems. Methods: idFromItem(ItemStack), itemFromId(String) + build() on the builder.
Nexo znaleziono, ale nie udało się załadować API: <msg>Hook stays disabled. Cause: different Nexo version without these methods / different package.
Success:
Wykryto Nexo! Włączono wsparcie dla niestandardowych przedmiotów.ID changed in the pack
On list, the ID is saved in listings.yml (nexoId). CustomItemsHook.recreateItem does not rebuild a healthy stack. Changing the pack ID only breaks recreation when the stored item is AIR.
Stored AIR and missing ID
If the stack in YAML is AIR:
- try
NexoHook.getNexoItem(nexoId); null(ID removed / API fail) → try Oraxen, then AIR.
Buy: buy.not-available (Ten przedmiot nie jest już dostępny!).
Exceptions in idFromItem / itemFromId are caught and return null — no stacktrace in the log.
Diagnostics
/market admin inspect <id> shows Nexo: <id>. Compare with the current Nexo pack.