mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
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:
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"
|
||||
|
||||
Reference in new issue
Block a user