Extends the Spigot API using Scala.
SpigotScala is a Scala-specific rework of the Spigot API. It includes syntactic sugar and scala-specific features.
SpigotScala includes:
- Scala plugin wrapper as a Spigot plugin
- Factory methods sugaring using the
apply
method - Method aliases (like operators for arithmetic methods)
- Better generic support and removal of class parameters
- Usage of Scala implicits to extend existing classes
- Custom DSLs
You can add the release jar to your project libraries or use a build tool like Gradle or SBT:
Using Gradle
repositories {
mavenCentral()
}
dependencies {
implementation 'io.github.iltotore:spigot-scala_2.13:version'
}
Using SBT
libraryDependencies += "io.github.iltotore" %% "spigot-scala" % "version"
You must add the release jar to your plugins
directory, then restart/reload the server.