SpigotScala
Extends the Spigot API using Scala.
Description
SpigotScala is a Scala-specific rework of the Spigot API. It includes syntactic sugar and scala-specific features.
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
Installation
Developers
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"
Server owners
You must add the release jar to your plugins
directory, then restart/reload the server.