Currently, I tried using API with plugin on Arclight-core server (1.20.1 forge). It gives an error like Attempted to load class net/minecraft/client/player/LocalPlayer for invalid dist DEDICATED_SERVER
I have no suggestions about implementation because I'm no expert at Forge stuff, but it would be useful to be able to use the API