Closed austin4195 closed 2 years ago
This is how classloaders work. You should have one interface in your mod, let your plugin implement this and pass it to your mod.
Having mods calling plugins directly violates the parent delegation model, which is weird and not easy to implement and maintain.
I have confirmed that ...
Arclight version
arclight-1.16.5-1.0.24-SNAPSHOT-156b78b
OS & Java versions
CentOS - Java 11 OpenJDK
Plugins and Mods
Description
Through the use of something like ForgePlaceholderAPI and SpigotPAPI bridge, there is a way to call Spigot's PlaceholderAPI placeholders and use them with Forge mods. This is accomplished thanks to ForgePlaceholderAPI (FPAPI), which can handle the management of the placeholders and exposes them to other Forge mods through its API.
Using FPAPI placeholders in Spigot things (like DeluxeMenus) works as expected. If I use
%FPAPIBridge_forge_name%
, it will parse as the player's name reported to Forge and will display that in something like DeluxeMenus or TAB.The reverse is not true, however. If I wanted to use
%luckperms_prefix%
inside of something like ForgeMenus, an error will appear as seen in logs. After speaking with the developer of FPAPI and ForgeMenus, this was concluded to be an error in how Arclight exposes Spigot plugins to Forge.I know of many other developers who would love to be able to call Spigot into their Forge mods and allow for better operation so it is my hope that something can be done about this.
Step to reproduce
No response
Logs
https://www.toptal.com/developers/hastebin/hayulekali.swift
Server pack link (Optional)
No response