SongodaCore/Core/src
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
..
main/java/com/songoda/core Heavily refactor PlotSquaredProtection.class 2022-12-30 16:14:08 +01:00
test/java/com/songoda/core Make unit tests in LocaleFileManagerTest deterministic 2022-11-26 15:31:43 +01:00