diff --git a/src/main/java/hdvtdev/blockandseek/CommandBuilder.java b/src/main/java/hdvtdev/blockandseek/CommandBuilder.java deleted file mode 100644 index 47eb8ba..0000000 --- a/src/main/java/hdvtdev/blockandseek/CommandBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -package hdvtdev.blockandseek; - -import org.jetbrains.annotations.Nullable; - -import java.util.ArrayList; -import java.util.List; - -public class CommandBuilder { - - private final List forest = new ArrayList<>(); - - public Node addNode(String name) { - Node node = new Node(name); - forest.add(node); - return node; - } - - @Nullable - public String tryGet(String fullPath) { - return null; - } - - - public static void printTree(Node node, String indent) { - System.out.println(indent + "- " + node.getName()); - for (Node child : node.getChildren()) { - printTree(child, indent + " "); - } - } - - - public static class Node { - private final String name; - private final List children; - - public Node(String name) { - this.name = name; - this.children = new ArrayList<>(); - } - - public void addChild(Node child) { - this.children.add(child); - } - - public List getChildren() { - return children; - } - - public String getName() { - return name; - } - - @Override - public String toString() { - return name; - } - } -} \ No newline at end of file diff --git a/src/main/java/hdvtdev/blockandseek/objects/BlockAndSeekMap.java b/src/main/java/hdvtdev/blockandseek/objects/BlockAndSeekMap.java index 0f8bf8d..c943b7b 100644 --- a/src/main/java/hdvtdev/blockandseek/objects/BlockAndSeekMap.java +++ b/src/main/java/hdvtdev/blockandseek/objects/BlockAndSeekMap.java @@ -20,10 +20,10 @@ import java.util.List; public class BlockAndSeekMap extends OkaeriConfig { @Comment("The main spawn point inside the arena") - private LazyLocation spawn; + private LazyLocation spawn = new LazyLocation(); @Comment("The waiting lobby location where players join before the match") - private LazyLocation lobby; + private LazyLocation lobby = new LazyLocation(); @Comment("Minimum number of players required to start the game") @Min(2)