Skip to content

Jannyboy11/ScalaDemoPlugin.g8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScalaDemoPlugin

A Giter8 template for developing Bukkit plugins in Scala.

Usage

Before running, make sure you have the following prerequisites installed:

Then, run sbt new Jannyboy11/ScalaDemoPlugin.g8 which generates a new SBT project using this template.

Compiling the Scala plugin

Simply run sbt assembly in your project's root folder and your plugin jar will be generated in the /target/scala- folder.

The plugin will depend on ScalaLoader, which will provide the Scala classes at runtime. No need to bundle the Scala library into the plugin's jar!

Deploying the Scala plugin

Now that the jar is generated, drop ScalaLoader into the <server_root>/plugins folder, and drop the Scala plugin in the <server_root>/plugins/ScalaLoader/scalaplugins folder.

Template license

Written in 2018 by Jan Boerman [email protected] [other author/contributor lines as appropriate]

To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this template to the public domain worldwide. This template is distributed without any warranty. See http://creativecommons.org/publicdomain/zero/1.0/.

Releases

No releases published

Packages

No packages published

Languages