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
@@ -19,24 +19,19 @@
|
||||
|
||||
package net.william278.huskhomes.util;
|
||||
|
||||
import de.exlll.configlib.Configuration;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import net.william278.annotaml.YamlFile;
|
||||
import net.william278.annotaml.YamlKey;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@YamlFile(header = """
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃ Unsafe /rtp Blocks ┃
|
||||
┃ Developed by William278 ┃
|
||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛""")
|
||||
@Configuration
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class UnsafeBlocks {
|
||||
|
||||
@YamlKey("unsafe_blocks")
|
||||
public List<String> unsafeBlocks;
|
||||
|
||||
@YamlKey("safe_occupation_blocks")
|
||||
public List<String> safeOccupationBlocks;
|
||||
|
||||
/**
|
||||
@@ -68,8 +63,4 @@ public class UnsafeBlocks {
|
||||
return blockId;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public UnsafeBlocks() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user