Earlier Versions
| Name | Size | Uploaded | Game Version | Downloads | |
| ScaLoader v1.1 release | 5.19 KB | May 7, 2017 | 1.11 | 119 | Download |
| ScaLoader 1.0 release | 3.14 KB | Dec 24, 2016 | 1.11 | 52 | Download |
Description
ScaLoader
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.
Libraries
This plugin downloads the following 2 libraries by default:
- scala-library-2.12.2.jar
- scala-reflect-2.12.2.jar
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.
Changelog:
v1.1
- Added ability to register libraries from other plugins
- Updated Scala from 2.11.8 to 2.12.2
v1.0
- Initial release
License
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.
Get 0.05 TON 💎
Download
Add a comment