Loads Scala and other libraries for use with plugins written in Scala
ScaLoader is a plugin that automatically downloads the Scala libraries, and injects them into the server's classpath. It also allows other plugins to register their own required libraries. This is required for any plugins written in Scala to function.
This plugin downloads the following 2 libraries by default:
Other libraries can be registered from other plugins using
LibraryRegistry.registerLibrary().
Example:
public void onEnable() {
LibraryRegistry.registerLibrary("Scala Library 2.12.2", new URL("http://central.maven.org/maven2/org/scala-lang/scala-library/2.11.8/scala-library-2.11.8.jar"), this);
}
A HashMap of all libraries and their filenames is stored in
LibraryRegistry.libraries.
v1.1
v1.0
This project is licensed under the MIT License. Feel free to use this plugin in any projects, and make a pull request if you have features to add.