Christian Koop
b779194e3e
Adds SongodaCore#getVersion
and deprecate #getCoreLibraryVersion
2022-08-25 08:37:46 +02:00
Christian Koop
163e4d9eaf
Fix error handling of SongodaYamlConfig#load(Reader)
2022-08-21 20:44:41 +02:00
Christian Koop
eea951ecc6
Adds some deprecation notices to configuration.editor classes
2022-08-21 20:44:19 +02:00
Christian Koop
20b44327e0
Redo ConfigEntry abstraction
2022-08-21 20:42:16 +02:00
Christian Koop
72c96bc09a
Adds Contract annotation to CompatibleMaterial#getMaterial
2022-08-21 20:39:50 +02:00
Christian Koop
76b3dc6682
Dependabot: Configure the target branch to be development
2022-08-19 10:53:17 +02:00
Christian Koop
7b775a1db3
GitHub-Actions: Fix Discord webhook URL used
2022-08-19 10:52:49 +02:00
Christian Koop
a06d27ab90
Version v3.0.0-SNAPSHOT
2022-08-19 10:06:58 +02:00
Christian Koop
d5ddde3e08
Migrate CustomizableGui from old Config to SongodaYamlConfig
2022-08-18 23:09:21 +02:00
Christian Koop
20b7a353b8
Adds SongodaYamlConfig#getAsEntry(String) for convenience
...
If you are reading a config dynamically instead of fully creating it
with all the entries beforehand, this method can be used
to easily access the *converted/casted* values.
2022-08-18 23:08:58 +02:00
Christian Koop
78b6039d39
Add contract to ConfigEntry#getString(String)
for non-null-argument
...
The contract basically says that if you provide a
non-null argument to the method, it cannot return
a null value.
2022-08-18 23:07:18 +02:00
Christian Koop
3a09c19dbb
Adds getter to ConfigEntry for List<String>
2022-08-18 23:06:22 +02:00
Christian Koop
da3c89450e
Remove usage of Locale classes
2022-08-18 23:05:21 +02:00
Christian Koop
61b784b3e8
Merge branch 'development' into development-v3
2022-08-18 22:57:46 +02:00
ceze88
430e203a65
Fix connection with MySQL
2022-08-09 16:27:28 +02:00
Christian Koop
b568d51151
Release v2.6.15-DEV
2022-08-08 23:12:06 +02:00
Christian Koop
b3be6700f9
Fixes NoSuchMethodException since MC 1.19.1 in chat package
...
Sadly, NMS-Package-Version did not change between 1.19.0 and 1.19.1
https://wiki.vg/index.php?title=Protocol&type=revision&diff=17688&oldid=17663
Co-authored-by: Fernando Pettinelli <fernandopettinellifreire@gmail.com>
2022-08-08 23:10:42 +02:00
Christian Koop
5e1f1b802c
Introduce new CI/CD pipeline using GitHub Actions
...
A lot is happening in this release!
tl;dr: GitHub Actions runs tests, compiles the project, signs the jar files, deploys them to the Maven repo; Pushing a git tag issues a release instead of snapshot deployment; -SNAPSHOT is always added to the version otherwise; Core Version is now injected by maven instead of manually updating it in one of the classes
We now use GitHub Actions to run automated tests, compile the project, sign the resulting jar files, and always deploy a version to the Maven repo.
By default, a snapshot release is published but by creating a git tag, a release deploy can be triggered.
Additionally the Core version is not manually updated in one of the classes but injected after compiling it.
I think I found the most stable and easiest way to do this in maven,
although I'd have wished for it to be easier and maybe not after the class file has already been created.
2022-08-07 19:33:38 +02:00
ceze88
0ae9c6fcdb
New method to get MySQL connection for HikariCP
2022-08-07 16:36:30 +02:00
Fernando Pettinelli
1ab918a32e
Version 2.6.14-DEV
2022-07-13 01:50:25 -04:00
Fernando Pettinelli
c8be1229e8
Fixes for AnvilView, WildStacker and mcMMO.
2022-07-13 01:49:36 -04:00
Fernando Pettinelli
df5adc0d3d
Merge branch 'development'
2022-07-03 03:40:01 -04:00
Fernando Pettinelli
2b7cfcc29a
Added ChatMessage fix.
2022-07-03 03:37:49 -04:00
Christian Koop
269aaa99b8
Update MethodMapping class for Minecraft 1.19
2022-06-28 12:19:12 +02:00
Christian Koop
f3b5b7c889
Merge branch 'development'
2022-06-28 12:17:18 +02:00
Fernando Pettinelli
2929c628ed
2.6.13 - Added Apache Commons Lang3 and Text. More 1.19 fixes.
2022-06-26 12:27:20 -04:00
Christian Koop
84515e7004
Minor code cleanup in SongodaYamlConfig constructor
...
keeps the logger effectively final + makes Codacity' static code analysis happy
2022-06-26 13:57:12 +02:00
Christian Koop
ed7b454625
Fix Exception when calling #emergencyStop inside onPluginEnable
2022-06-26 13:46:38 +02:00
Christian Koop
73685b62dd
Mark overwritten and empty config methods in SongodaPlugin as deprecated
...
The methods should not be used
2022-06-26 13:46:35 +02:00
Christian Koop
7ef00bb8f9
Adjust log levels in SongodaYamlConfig
...
Level.FINER is currently not logged anthough the Logger is set to ALL and isLoggable returns true for FINER.
There's an bug existing bug report at Spigot: https://hub.spigotmc.org/jira/browse/SPIGOT-7018
2022-06-26 13:46:29 +02:00
Christian Koop
532d96f6c1
Add adventure-api
to SongodaCore dependencies
2022-06-26 13:28:10 +02:00
Christian Koop
b0f006aed0
Fix SongodaYamlConfig not creating parent directory when saving
...
Caused an IOException if the PluginDataDir didn't exist yet.
2022-06-26 13:26:13 +02:00
Christian Koop
e7e3c3d21d
Disable test CompatibileMaterialTest#getMaterialForAllBukkitMaterials
...
It is highly version dependent and breaks often because of that
2022-06-26 13:25:10 +02:00
Christian Koop
c9a48387de
Fix SongodaYamlConfigTest leaving created backup files in tmp dir
2022-06-26 13:24:16 +02:00
Christian Koop
fce5c5c6a1
Remove Config related methods in SongodaPlugin
...
Escept for #getExtraConfigs which got renamed, the other methods are no longer required and have been removed.
Additionally the config methods defined by Bukkit's JavaPlugin class
have been overwritten with empty bodies.
This prevents the default behaviour trying to access stuff that's not there
or should not be considered a valid config to use.
2022-06-26 02:38:29 +02:00
Christian Koop
4bc0e991ab
Removes #getConsole in SongodaPlugin
2022-06-26 02:33:09 +02:00
Christian Koop
eb10b3f70a
Introduce new SongodaYamlConfig and ConfigEntry classes
...
This introduces an additional abstraction layer on top of the YamlConfiguration.
This is the class that should normally be used by plugins.
2022-06-26 01:51:53 +02:00
Christian Koop
8310541b91
Fix ServerVersion#UNKNOWN being treated like a normal version
...
This is required for unit tests (especially the `Bukkit#getServer != null` check).
But it seems faulty to even trat an unknown version like a normal one.
2022-06-26 01:39:39 +02:00
Christian Koop
02ab8d4bb2
Fix YamlConfiguration dumping null values and empty tree nodes
2022-06-26 01:39:39 +02:00
Christian Koop
885cc9a87e
Fix YamlConfiruration#getKeys("")
not returning root node keys
2022-06-26 01:39:39 +02:00
Christian Koop
2683bc12c0
Fix exception on loading empty file in YamlConfiguration
2022-06-26 01:39:39 +02:00
Christian Koop
2262652577
Make YamlConfiguration insertion-sorted
...
This ensured that the order of the keys is deterministic and be controlled by the developer.
2022-06-26 01:39:39 +02:00
Christian Koop
f6e207cdda
Rename IConfiguration#getOrDefault
to #getOr
2022-06-26 01:39:39 +02:00
Fernando Pettinelli
b110a69285
1.19 fixes
2022-06-25 17:59:06 -04:00
Christian Koop
2272fe7b97
Release v2.6.13-DEV
2022-06-20 17:27:01 +02:00
Christian Koop
88b0b03326
Add 1.19 Materials to CompatibleMaterial
2022-06-20 14:52:18 +02:00
Christian Koop
73c6b9a558
Fixes MathUtils unit tests
...
Started failing with changes in d25514743f
2022-06-16 20:59:50 +02:00
Christian Koop
d25514743f
Improve exception message for the Eval class
2022-06-16 13:21:58 +02:00
Christian Koop
c33987162e
Remove unused static Random in BBaseSpawnerImpl for Spiot 1.19
2022-06-07 20:08:33 +02:00
Christian Koop
c50b691c3c
pom.xml: Remove snapshot plugin repositories
2022-06-07 20:04:30 +02:00