mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 18:45:34 +01:00
7975f9088d
Moved code into private methods to make the Location#at call more readable and to reduce duplicate code. `PlotSquared.get()` is marked as `@NotNull` and is never null if `PlotSquaredProtection#isEnabled` returns true. That's why I removed the `null` check on the *API* with a check if PlotSquared is enabled. I replaced the usage of Java StreamAPI with a simple for loop for better potential performance. The loop is so simple and we don't know the plugins that might be using this class, thus greater performance for a small loss on readability is probably worth it + Removed some unused imports |
||
---|---|---|
.github | ||
Compatibility | ||
Core | ||
NMS | ||
.editorconfig | ||
.gitignore | ||
LICENSE | ||
pom.xml | ||
README.md |
SongodaCore
An elaborate multi functional general Spigot plugin compatibility core and general use API.
Maven
Repository
<repository>
<id>songoda-public</id>
<url>https://repo.songoda.com/repository/public/</url>
</repository>
Artifact
<dependency>
<groupId>com.songoda</groupId>
<artifactId>SongodaCore</artifactId>
<version>VERSION</version>
</dependency>
Gradle
Repository
repositories {
maven {
url 'https://repo.songoda.com/repository/public/'
}
}
Artifact
dependencies {
compileOnly 'com.songoda:SongodaCore:VERSION'
}