Commit Graph

501 Commits

Author SHA1 Message Date
Christian Koop
199840f845
Minor code style fixes/refactoring in H2Connector 2023-07-01 13:39:44 +02:00
Christian Koop
fafc4baaa3
Fixes username and password in H2Connector being mixed up 2023-07-01 13:39:44 +02:00
ceze88
2962a5cef8 Improve data loading to make it easier for plugins to create new data instances when deserialized 2023-07-01 09:54:09 +02:00
Christian Koop
1b2b2a41a3
Updates UltimateStacker-API dependency to use the new name+version 2023-06-30 22:53:43 +02:00
Christian Koop
2aa367c8e3
Merge branch 'feature/new-improved-database-system' into development 2023-06-29 17:14:28 +02:00
ceze88
84c7d1da4b Fix database converter, fix uuid data support. Adds test for database 2023-06-29 16:04:12 +02:00
Christian Koop
9ac1da984d
Renamed method argument l to location in LocationUtils#isInArea 2023-06-29 09:37:42 +02:00
ceze88
5d9cab5613 Merge branch 'development' into feature/new-improved-database-system
# Conflicts:
#	Core/pom.xml
#	Core/src/main/java/com/craftaro/core/SongodaPlugin.java
2023-06-28 11:58:09 +02:00
Christian Koop
572cf3d805
Adds a lot of this. in GUI releated classes 2023-06-24 16:00:57 +02:00
Christian Koop
7ce74de993
Deprecates CompatibleSound in favor of XSound from the XSeries library 2023-06-24 15:58:38 +02:00
Christian Koop
b09338f78f
Adds a lot of this. in some files 2023-06-24 12:57:57 +02:00
Christian Koop
49eb5437e9
Updates item-nbt-api dependency to v2.11.3 2023-06-24 12:55:15 +02:00
Christian Koop
bac3c1b16e
Re-implemented CompatibleMaterial + changed usages to XMaterial 2023-06-20 20:22:29 +02:00
Christian Koop
9e73e2a87d
Fixes some code style issues 2023-06-18 00:33:07 +02:00
Christian Koop
3b92b69cc6
Fixes some code style issues 2023-06-17 16:34:50 +02:00
Christian Koop
3203e4b799
Deprecate some utility classes that still need some additional work 2023-06-17 16:31:13 +02:00
Christian Koop
f1fa34f891
Deprecates most parts of NumberUtils and refactors #isInt(String)
Trying to parse an empty or null String throws an `NumberFormatException` so we don't need that check.
2023-06-17 16:30:27 +02:00
Christian Koop
24007b5d17
Slight refactor of PlayerUtils and marking some methods as Deprecated
The Deprecations need to be taken care of at a later point in time.
Most methods do have a strong use-case in relation to commands and should be placed
in a more appropriate class.
2023-06-17 16:30:27 +02:00
Christian Koop
f348ddef45
Deprecate some unused or no-longer-needed utility classes 2023-06-17 16:30:27 +02:00
Christian Koop
c43bc093cc
Replace EntityUtils with new NmsEntity implementation and deprecate it 2023-06-17 15:45:23 +02:00
Christian Koop
4c32936367
Fix package path used in SongodaCore#hasShading 2023-06-17 13:35:19 +02:00
Christian Koop
bba24097fd
Rename SongodaCoreConstants into CraftaroCoreConstants and update them 2023-06-17 13:06:57 +02:00
ceze88
ee9d6016bf
Big changes to the database system
This a modified version of the original commit b2180b0c73.

I changed/removed:
* project version bump (a lot of unrealated file changes, wrong version in regards to breaking changes)
* Hacky changes to the NMS class
* Reverted changes to SSpawner (We want to keep the class variables final
and there doesn't seem to be a big advantage in overwriting basically the whole classe's content
when you could just create a new instance instead, as intended)
* Commit name (old name was `(changes will be in next commit)`)
2023-06-11 12:55:04 +02:00
Christian Koop
e8639f3540
Fix forgotten package name changes
Forgotten in a33da058e29e4ed1ee018b8d51f503e07547d18a
2023-06-11 00:37:11 +02:00
Christian Koop
5da3769a47
Move every class from com.songoda package to com.craftaro 2023-06-11 00:37:11 +02:00
Christian Koop
f66964b2ee
Refactor Nms class to be more readable and make it final 2023-06-10 22:14:54 +02:00
Christian Koop
1e0de3d844
If the product's license check fails, periodically broadcast a message 2023-06-09 15:20:33 +02:00
Christian Koop
d0abbf26ec
Don't use Apache commons-io to read HTTP response body bytes
At least in Spigot 1.19 it is not available by default - That much we can do ourselves in that case.
2023-06-09 15:20:33 +02:00
Christian Koop
5f02c06ce8
Bump core revision from 9 to 10
To make sure the Core with the `/craftaro license` command wins the 'newest-core-battle'
2023-06-09 15:20:33 +02:00
Christian Koop
f8a9e81388
Improve colors and formatting for /craftaro license command 2023-06-09 15:20:33 +02:00
Christian Koop
3f89267e8e
Don't fully shutdown the plugin when license verification fails
The goal here is to keep the plugin enabled and initialize the Core.
This is needed for the `/craftaro license` command to work etc.

Sadly this also means other plugins checking for the plugin being the
(including the `/plugins` command), report the plugin as enabled
and seemingly ready (Although the plugin's API is not).
2023-06-09 15:20:33 +02:00
Christian Koop
1998fd7ff9
Remove broken command '/craftaro myip`
The API endpoint doesn't exist anymore.
The command is part of the old SongodaAuth license system.
2023-06-09 15:20:33 +02:00
Christian Koop
c6d688b6b7
Implements new Craftaro Product Verification Flows replacing SongodaAuth 2023-06-09 15:20:33 +02:00
Christian Koop
eac02d51fe
Removes org.yaml.snakeyaml as shaded dependency
It is already included in Spigot. Probably forgot to revert this with c725ea69d6.

This causes weird Exceptions/Errors in Folia (and/or Paper?).
2023-05-18 19:17:47 +02:00
ceze88
755124c070 Update UltimateStacker hook 2023-05-18 19:08:44 +02:00
Christian Koop
5e21ac9424
Revert deletion of NmsManager, deprecate it and have it use the new one 2023-05-06 22:44:38 +02:00
Christian Koop
17780fffdc
Introduce constants GitHubProjectURL+ProjectName in SongodaCoreConstants 2023-05-06 22:44:38 +02:00
Christian Koop
3722ebb46a
Fix a couple compile errors after a lot of reverts and merges 2023-05-06 22:44:38 +02:00
Christian Koop
5e093558a4
Deprecates BlockUtils#updateAdjacentComparators(Location) 2023-05-06 22:44:38 +02:00
Christian Koop
50d5784da8
Partially reverts "Replace #updateAdjacentComparators implementation(+ move to NMS modules)"
This partially reverts commit 3d20f439e1.
2023-05-06 22:44:38 +02:00
Christian Koop
dc82a6ba5c
Deprecates BlockUtils#setBlockFast methods 2023-05-06 22:44:38 +02:00
Christian Koop
1240c75bfa
Partially reverts "Replace #setBlockFast implementation and move into NMS modules"
This partially reverts commit 43148032a2.
2023-05-06 22:44:38 +02:00
Christian Koop
ad8f8517a7
Deprecates SWorldBorder class
Related to:
* 71502be7d0a8978ede443b43c207c932f550730d
* 9d7026ec27
2023-05-06 22:44:38 +02:00
Christian Koop
426e786b49
Partially reverts "Replace SWorldBorder implementation and move it into NMS modules"
This partially reverts commit 9d7026ec27.
2023-05-06 22:44:38 +02:00
Christian Koop
7c09845789
Revert "Remove overloading WorldCore#getSpawner(CreatureSpawner)"
This reverts commit 1cd96b10c5.
2023-05-06 22:44:38 +02:00
Christian Koop
c725ea69d6
Revert all the SongodaYamlConfig related commits
Revert "Ensures usage of UTF-8 in SongodaYamlConfig"

This reverts commit 339a4d6f6c.

Revert "Improve test coverage + stability of configuration.yaml/songoda classes"

This reverts commit ef6c37b80c.

Revert "Adds ConfigEntry#withDefaultValue for easier chaining"

This reverts commit 88e28689f7.

Revert "Code cleanup (rename e->ex in catch; better type for #withUpgradeStep)"

This reverts commit 7eff3c86ec.

Revert "Rename constant into upper case to match code conventions"

This reverts commit 4d194ed92b.

Revert "Fix typo in JavaDoc"

This reverts commit 0b2a253014.

Revert "Makes SongodaYamlConfig#cannotCreateBackupCopyExceptionPrefix static"

This reverts commit 8e91cc18eb.

Revert "Make unit tests in LocaleFileManagerTest deterministic"

This reverts commit 67a69e34e8.

Revert "Add unit test for SongodaYamlConfig persisting comments on key-upgrades"

This reverts commit d710b2d2d5.

Revert "Improve temporary file deletion in YamlConfig and FileManager tests"

This reverts commit 02330b5ca7.

Revert "Adds hyphen before timestamp in file name, when creating backup YamlCfg"

This reverts commit f8b3942de2.

Revert "Fix YamlConfiguration not dumping comments"

This reverts commit e7da328dc6.

Revert "Provisional first implementation of the new localization system"

This reverts commit b168ad0738.

Revert "Fix error handling of SongodaYamlConfig#load(Reader)"

This reverts commit 163e4d9eaf.

Partially reverts "Adds some deprecation notices to configuration.editor classes"

This partially reverts commit eea951ecc6.

Revert "Redo ConfigEntry abstraction"

This reverts commit 20b44327e0.

Revert "Migrate CustomizableGui from old Config to SongodaYamlConfig"

This reverts commit d5ddde3e08.

Revert "Adds SongodaYamlConfig#getAsEntry(String) for convenience"

This reverts commit 20b7a353b8.

Revert "Add contract to `ConfigEntry#getString(String)` for non-null-argument"

This reverts commit 78b6039d39.

Revert "Adds getter to ConfigEntry for List<String>"

This reverts commit 3a09c19dbb.

Revert "Remove usage of Locale classes"

This reverts commit da3c89450e.

Revert "Mark overwritten and empty config methods in SongodaPlugin as deprecated"

This reverts commit 73685b62dd.

Revert "Adjust log levels in SongodaYamlConfig"

This reverts commit 7ef00bb8f9.

Revert "Fix SongodaYamlConfig not creating parent directory when saving"

This reverts commit b0f006aed0.

Revert "Fix SongodaYamlConfigTest leaving created backup files in tmp dir"

This reverts commit c9a48387de.

Revert "Remove Config related methods in SongodaPlugin"

This reverts commit fce5c5c6a1.

Revert "Introduce new SongodaYamlConfig and ConfigEntry classes"

This reverts commit eb10b3f70a.

Revert "Fix YamlConfiguration dumping null values and empty tree nodes"

This reverts commit 02ab8d4bb2.

Revert "Fix `YamlConfiruration#getKeys("")` not returning root node keys"

This reverts commit 885cc9a87e.

Revert "Fix exception on loading empty file in YamlConfiguration"

This reverts commit 2683bc12c0.

Revert "Make YamlConfiguration insertion-sorted"

This reverts commit 2262652577.

Revert "Rename `IConfiguration#getOrDefault` to `#getOr`"

This reverts commit f6e207cdda.

Revert "Adds Enum support to YamlConfiguration class (#41)"

This reverts commit 41bd5c633a.

Revert "Removes the default implementations for #save(File) and #load(File)"

This reverts commit 8f15df3601.

Revert "Replace Songoda's YAML Configuration wrapper with an own implementation"

This reverts commit 6d6fa7210a.
2023-05-06 22:44:38 +02:00
Christian Koop
748f10b77b
Merge branch 'development' into development-v3 2023-05-06 20:17:35 +02:00
Christian Koop
0a0848c857
Release v2.6.21 2023-04-29 12:37:40 +02:00
Christian Koop
06761c001c
Fix plugin cmd list displayed in Action Bar instead of the chat 1.19.3+
The boolean flag determines 'whether the message is an actionbar or chat message'.
We want to have it set to `false` here.

Reference:
https://wiki.vg/index.php?title=Protocol&oldid=18120#System_Chat_Message
2023-04-29 11:56:04 +02:00
Christian Koop
7a7d2e8b97
Release v2.6.20 2023-04-22 16:13:07 +02:00