ModsJava
KotlinLoader
Java mod listed for Minecraft 1.14–1.15. Download on the author's site.
⬇ Download on Spigot KotlinLoader
Kotlin is a wonderful growing programming language with support for the JVM. This allows us to write Minecraft Plugins in Kotlin. While this works fine, it does bring some inconviences. To run kotlin, it is mandatory for the kotlin library files to be available at runtime. While it is possible to provide these classes with the -classpath option, when starting the JVM, most spigot servers run in managed environments. The go-to workaround for this problem is to add these library files to the final jar by shading them. This will increase your jar size alot.
KotlinLoader provides a custom PluginLoader, that will provide the Kotlin library classes for you.
Included Kotlin Libraries
Usage for Server Administrators
Download the plugin and place it into your {server_root}/plugins folder.
Add the plugins using this project to the {server_root}/plugins/kotlin folder, which will be created on runtime, if it wasn't already.
For a slightly better description, please visit the github page.
Kotlin is a wonderful growing programming language with support for the JVM. This allows us to write Minecraft Plugins in Kotlin. While this works fine, it does bring some inconviences. To run kotlin, it is mandatory for the kotlin library files to be available at runtime. While it is possible to provide these classes with the -classpath option, when starting the JVM, most spigot servers run in managed environments. The go-to workaround for this problem is to add these library files to the final jar by shading them. This will increase your jar size alot.
KotlinLoader provides a custom PluginLoader, that will provide the Kotlin library classes for you.
Included Kotlin Libraries
- kotlin-stdlib
- kotlinx-coroutines
- kotlin-reflect
- kotlin-stdlib-jdk8
- kotlin-stdlib-jdk7
- Write Idiomatic Kotlin!
- The main class can be an object singleton, instead of a normal class.
- Decrease size of the final plugin jar.
- A simpler way of defining events, which prevent a lot of boilerplate.
- This plugin uses alot of reflection and injection hacks to allows Kotlin classes to be accessed by JavaPlugins
- Plugins extending KotlinPlugin should be located in the <server_root>/plugins/kotlin folder.
- Java Plugins might not be able to use features provided by Kotlin Plugins due to a problem in the normal PluginClassLoader
- Add support for .kts configuration
- Add support for annotation based/kts based plugin descriptions
- Add BungeeCord support
Usage for Server Administrators
Download the plugin and place it into your {server_root}/plugins folder.
Add the plugins using this project to the {server_root}/plugins/kotlin folder, which will be created on runtime, if it wasn't already.
For a slightly better description, please visit the github page.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.14, 1.15
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
KotlinLoader is a free Minecraft Java mod. Compatible with Minecraft 1.14, 1.15. Downloaded 334 times (via Spigot). Download it and open it directly in the game.