refactor: Move to ConfigLib, use lombok (#563)

* refactor: move to configlib, adjust config structure

* fix: huskclaims typos

* fix: don't generate `server.yml` in local mode

* fix: NPE with server name
This commit is contained in:
William authored and GitHub committed 2024-02-12 16:54:23 +00:00
1 parent c55631a30d
commit 1723aa44fc
84 files changed
+4334 -4832

No files matched your search

@@ -131,7 +131,7 @@ public class BukkitPluginTests {
@Test
@DisplayName("Test Locale Loading")
public void testLocalesLoading() {
final Map<String, String> rawLocales = plugin.getLocales().rawLocales;
final Map<String, String> rawLocales = plugin.getLocales().getRawLocales();
Assertions.assertFalse(rawLocales.isEmpty());
rawLocales.forEach((key, value) -> Assertions.assertNotNull(value));
}
@@ -139,7 +139,7 @@ public class BukkitPluginTests {
@Test
@DisplayName("Test Locale Parsing")
public void testLocaleParsing() {
final Map<String, String> rawLocales = plugin.getLocales().rawLocales;
final Map<String, String> rawLocales = plugin.getLocales().getRawLocales();
BukkitUser user = BukkitUser.adapt(server.addPlayer(), plugin);
rawLocales.forEach((key, value) -> {
Optional<MineDown> locale = plugin.getLocales().getLocale(key);
@@ -457,8 +457,6 @@ public class BukkitPluginTests {
private static final List<String> HOME_NAMES = List.of(
"mr_home",
"homble",
"seaside",
"hovel",
"tokyo-3",
"testington",
"h"