Commit Graph

1066 Commits

Author SHA1 Message Date
Christian Koop 140c59ffa2
Merge branch 'development' into development-v3 2023-03-29 18:49:25 +02:00
Christian Koop 07374fdbfd
Configures the new v1_19_R3 NMS module in the NmsManager class 2023-03-29 18:22:13 +02:00
Christian Koop fafcf28e0b
Updates dependency item-nbt-api to v2.11.2 for Spigot 1.19.4 support
From the changelog:
>Add 1.19.4 as officially supported (2.11.1 will work fine on 1.19.4, but show a warning that it doesn't know about this version)
2023-03-29 18:21:41 +02:00
Christian Koop 6d84d84753
Switch LICENSE from GPLv3 to CC BY-NC-ND 4.0
Co-authored-by: Eli Rickard <38917063+EliRickard@users.noreply.github.com>
2023-03-29 18:06:35 +02:00
Christian Koop ecf472c6c7
Implement missing Methods in NMS v1_19_R3 after merge (+ code cleanup)
Related commit 6d8c3beeb3
2023-03-16 19:08:36 +01:00
Christian Koop 6d8c3beeb3
Merge branch 'development' into development-v3 2023-03-16 19:07:54 +01:00
Christian Koop 52f6c42266
Adds NMS Module v1_19_R3 for Spigot 1.19.4 compatibility 2023-03-16 09:46:40 +01:00
Christian Koop a79677d261
Updates Lands-ProtectionHook to use v6 of the API
The API changed and we are 2 major versions behind
This drops support for outdated version of *Lands* and re-adds support for the latest version.
2023-03-09 15:53:21 +01:00
Christian Koop 5199043a4b
Minor code refractoring on SongodaAuth
Just trying to make it a bit more readable and easier to understand at a glance.
2023-03-04 13:08:16 +01:00
Christian Koop 6145021ecb
Remove unused imports in SongodaAuth and apply code formatting 2023-03-04 12:47:53 +01:00
Christian Koop d9586cfe86
Slightly changes wording of 'missing-license' message
+ small refactoring – Putting the *expesive* method calls outside the string into variables
to easier see them, when trying to understand the code and the need
for its own thread for just printing some messages to  the console.
2023-03-04 12:38:33 +01:00
Christian Koop ca13e8b26e
Prints 'missing-license' message in the console as one long message
This prevents fragmentation of the idividual lines. `#getIP()` can take a couple of seconds
and because it is executed outside of the main-thread, other message can be printed bevore
the IP address and UUID are ready to be printed.
2023-03-04 12:36:20 +01:00
ceze88 e57cd93629 Merge branch 'development' 2023-01-25 17:34:07 +01:00
ceze88 386ff209a7 Release v2.6.18 2023-01-25 16:02:44 +01:00
ceze88 7c02457108 Ignore self compiled plugins 2023-01-15 12:23:56 +01:00
Christian Koop c29c4a5b09
Release v2.6.18-DEV 2023-01-11 22:00:36 +01:00
ceze88 ad6b52ca4a Add license stuff 2023-01-11 21:41:04 +01:00
Christian Koop dc64c29da7
Ensures UTF-8 usage in LootManager
Probably doesn't affect anything as this file should only contain english letters
but just in case for the sake of tidyness
2023-01-08 12:47:27 +01:00
Christian Koop 339a4d6f6c
Ensures usage of UTF-8 in SongodaYamlConfig
Depending on the environment the default system charset might not be UTF-8 beaking
messages files using non-english language etc.

I'm not sure but Spigot might even set it to ASCII? The tests succeed locally because I am
using Manjaro Linux which uses UTF-8 by default in the JVM. But testing a plugin and logging
the default charset returns ASCII instead (on the same machine).
2023-01-08 12:46:42 +01:00
ceze88 336c5c49f3
Revert "License system"
This reverts commit 10aac8c10f.
2023-01-06 14:02:32 +01:00
ceze88 10aac8c10f License system 2023-01-02 13:39:54 +01:00
ceze88 bd187c7512 Fix max stack size for drops 2022-12-31 20:42:03 +01:00
Christian Koop 842841cd74
Fixes NMS for Spigot 1.19.0 / 1.19.1 / 1.19.2 detection
Purpur-Spigot and plain Spigot do not end with `.0`. Not sure if Paper does or Spigot 1.19.1 does?

I just added the plain `1.19` check.
This is not an issue in the Core v3 branch as the check is more stable there.
2022-12-30 20:09:01 +01:00
Christian Koop 5f762c9417
pom.xml: Updates and fixes test setup
Pitest was unable to run because it could not find a couple of NMS classes and some other stuff.

We are excluding the `SongodaCoreConstantsTest` because it apparently
sees the Skip-Exception we are throwing as a failed test instead of a skipped one.
Causing it to abort its whole operation – Probably just a bug in Pitest

I also added the groupId to the two maven/test plugins as they were missing.
I wondered a couple of times why InjtelliJ cannot detect them while `mvn` runs as expected.
Looks like I never realised that missing - Now it is like it should have been
2022-12-30 18:27:13 +01:00
Christian Koop e44e161c89
Adds some additional test cases for MathUtilsTest 2022-12-30 18:23:02 +01:00
Christian Koop ef6c37b80c
Improve test coverage + stability of configuration.yaml/songoda classes 2022-12-30 18:22:11 +01:00
Christian Koop 45e1319f9c
Remove some unused imports inside `v1_19_R2` module 2022-12-30 16:24:53 +01:00
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
Christian Koop 3a95b13419
Removes commented-out test-dependency `MockBukkit`
More details can be found in 404a94c307
2022-12-30 15:28:25 +01:00
Christian Koop 0a7b24c0ce
Updates dev dependency `org.jetbrains:annotations` to v23.1.0 2022-12-30 15:24:08 +01:00
Christian Koop 88e28689f7
Adds ConfigEntry#withDefaultValue for easier chaining
This allows to chain the default value instead of using the setter or constructor.
Long keys/values can be put into individual lines which improves readability.

In the future, we might want to have a Builder class that contains all thise #with methods
2022-12-30 15:21:07 +01:00
Christian Koop 7eff3c86ec
Code cleanup (rename e->ex in catch; better type for #withUpgradeStep) 2022-12-30 15:21:07 +01:00
ceze88 ea10cc2e3f Don't override uuid 2022-12-29 17:26:23 +01:00
ceze88 a554934bfa Remove deprecated constructor 2022-12-29 13:49:34 +01:00
ceze88 8f95056e31 A little database utility 2022-12-29 13:49:04 +01:00
Christian Koop f38296e4b1
GitHub Actions: Adds Spigot 1.18 + 1.19.3 to SonarCloud 2022-12-29 12:24:05 +01:00
ceze88 7674a86513 Merge branch 'development' of https://github.com/songoda/SongodaCore into development 2022-12-29 11:52:25 +01:00
ceze88 7ac9b7b283 Remove UUID when deserialising NBT 2022-12-29 11:52:12 +01:00
ceze88 8ad3bc8ba6 Why spihot api wasn't there? 2022-12-29 11:51:23 +01:00
ceze88 17fb03f073 Fix pre stacking items 2022-12-29 11:50:51 +01:00
Christian Koop dcd6967828
GitHub Actions: Adds Spigot 1.19.3 to the setup-action to compile it 2022-12-29 11:28:17 +01:00
Christian Koop c728c5fcc7
GitHub Actions: Adds Spigot 1.19.3 to the setup-action to compile it 2022-12-29 11:25:54 +01:00
Christian Koop 396f3aefb8
Merge branch 'development' into development-v3 2022-12-26 21:03:31 +01:00
Christian Koop 1a911ee085
Release v2.6.17 2022-12-26 19:59:02 +01:00
Christian Koop 6d28fce312
Updates dependency `de.tr7zw:item-nbt-api` to support Minecraft 1.19.3 2022-12-26 19:58:33 +01:00
Christian Koop 64865873f9
Adds NMS module for Spigot 1.19.3 (v1_19_R2) support 2022-12-26 13:44:58 +01:00
Christian Koop 296f82f50e
Restore functionality of deprecated SQLite connection acquisition
If the connection is closed, no new SQLite connection is created in plugins still using the
deprecated method.


Introduced in 0ae9c6fcdb
2022-12-26 13:44:58 +01:00
Christian Koop c3fb050444
Updates dependency UltimateStacker to v2.3.2 2022-12-26 13:44:49 +01:00
Christian Koop d939489861
Use `1.18-R0.1-SNAPSHOT` instead of `1.18` in `NMS-v1_18_R1` module 2022-12-25 22:49:39 +01:00
Christian Koop 4d194ed92b
Rename constant into upper case to match code conventions 2022-11-26 20:40:57 +01:00