DenizenScript / Denizen

NPC and general Spigot scripting, using the Denizen Scripting Language!
https://denizenscript.com/
MIT License
213 stars 106 forks source link

Fix NMS module loading on Paper #2618

Closed tal5 closed 5 months ago

tal5 commented 5 months ago

Changes

[!NOTE] Could parse the version string directly into the NMSVersion, but that'd be a bit messy with handling patch/release versions and all - let me know if that'd be preferred though.

[!NOTE] There's technically more "correct" API to use for this (Bukkit#getMinecraftVersion), but that's Paper only and probably not worth the mess? (as the Paper module is obviously not initialized at that point)