ScalaLoader
Claim this plugin
This plugin was imported from Spiget and is currently unclaimed.
Plugin Information
Description
So you want to write plugins in Scala? Great! Or not so great? Scala runtime classes are not on the class/module path by default. Server administrators could add them using the -classpath commandline option, but in reality most bukkit servers run in managed environments by minecraft-specialized server hosts. The standard workaround for this problem is to include the classes in your own plugin and relocate them using a shading plugin in your build process. While this does work, it means that Scala library classes are no longer shared between plugins, making them incompatible because the scala classes will be loaded by different classloaders. Since Spigot 1.16.5 there is the option to include the dependency in the plugin.yml, but this approach has the same problems. And there is the problem of unnecessary ram and disc usage too. As of Scala 2.12.6, the standard library has a size of 3.5 MB. The reflection library is another 5 MB. Using both libraries in multiple plugins results unnecessarily large plugins sizes, while really those Scala classes should only be loaded once. Introducing… ScalaLoader ScalaLoader uses a custom PluginLoader that loads the Scala runtime classes for you! You can use this Giter8 template to get started quickly! Pros
Minecraft Plugin Badges
Use these badge images in docs, README files, or forum posts.