Go to file
Christian Koop 7975f9088d
Heavily refactor PlotSquaredProtection.class
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
2022-12-30 16:14:08 +01:00
.github GitHub Actions: Adds Spigot 1.19.3 to the setup-action to compile it 2022-12-29 11:25:54 +01:00
Compatibility Merge branch 'development' into development-v3 2022-12-26 21:03:31 +01:00
Core Heavily refactor PlotSquaredProtection.class 2022-12-30 16:14:08 +01:00
NMS Merge branch 'development' into development-v3 2022-12-26 21:03:31 +01:00
.editorconfig Update EditorConfig [DEV-2] 2021-10-30 14:10:22 +02:00
.gitignore Add dependencies for unit tests 2021-10-30 14:53:23 +02:00
LICENSE Update pom.xml files and project structure 2021-07-08 15:37:37 +02:00
pom.xml Removes commented-out test-dependency MockBukkit 2022-12-30 15:28:25 +01:00
README.md Dependabot, FUNDING, README 2021-07-08 15:37:37 +02:00

SongodaCore

An elaborate multi functional general Spigot plugin compatibility core and general use API.

Discord Patreon
Build Latest version Quality Gate Status GitHub last commit

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'
}