You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
therefore I am hosting it on GitHub releases, posting on Spigot Resources with an external download link. But this creates restrictions not present with a direct upload to spigot.org, such as:
Is it even feasible to reduce the size of WebSandboxMC under the limit? The compiled NetCraft output, even with emcc -O3 optimizations, is several megabytes:
Dependencies take up 4.9 MB zipped (io/github/satoshinm/WebSandboxMC/dep), see about removing some. Netty is only 1.5 MB zipped. Many Bukkit servers include Netty, but of various versions, and older versions do not, so removing it could introduce incompatibilities. But I likely don't need most of these (where are they even coming from?):
https://github.com/Bukkit/SamplePlugin/blob/master/pom.xml (submitted PR to fix: Bukkit/SamplePlugin#16) seems to have the wrong scope for the API dependency, they use <scope>compile</scope>, but changing to <scope>provided</scope> prevents it from being included in the jar with the maven-shade-plugin (2.6 MB) -- no exclusions necessary!
But then I do have some unexpected dependencies to resolve:
20:13:00 [WARNING] java.lang.NoClassDefFoundError: io/github/satoshinm/WebSandboxMC/dep/com/google/common/base/Charsets
20:13:00 [WARNING] at io.github.satoshinm.WebSandboxMC.ws.WebSocketIndexPageHandler.sendTextResource(WebSocketIndexPageHandler.java:84)
Only needed to remove com.google dependency by using java.nio instead for Charset.
Spigot Resources maximum plugin file upload size is 4 MB:
https://www.spigotmc.org/resources/websandboxmc.39415/add-version
but WebSandboxMC is far bigger:
therefore I am hosting it on GitHub releases, posting on Spigot Resources with an external download link. But this creates restrictions not present with a direct upload to spigot.org, such as:
https://board.aternos.org/index.php?thread/7366-how-to-write-a-good-plugin-modpack-mod-request/
How big of plugins does https://dev.bukkit.org accept?
Is it even feasible to reduce the size of WebSandboxMC under the limit? The compiled NetCraft output, even with emcc -O3 optimizations, is several megabytes:
The text was updated successfully, but these errors were encountered: