diff --git a/pom.xml b/pom.xml index 61cf624..12532db 100644 --- a/pom.xml +++ b/pom.xml @@ -81,5 +81,10 @@ javax.json-api 1.0 + + org.glassfish + javax.json + 1.0.4 + diff --git a/src/main/java/buttondevteam/presents/StaticMain.java b/src/main/java/buttondevteam/presents/StaticMain.java new file mode 100644 index 0000000..83d6336 --- /dev/null +++ b/src/main/java/buttondevteam/presents/StaticMain.java @@ -0,0 +1,19 @@ +package buttondevteam.presents; + +import javax.json.Json; +import javax.json.JsonBuilderFactory; +import javax.json.JsonObject; + +public class StaticMain { + public static void main(String[] args){ + + JsonBuilderFactory factory = Json.createBuilderFactory(null); + JsonObject value = factory.createObjectBuilder() + .add("Ali", "pls") + .add("iie", "whaddap") + .add("norbi", "nice") + .build(); + + System.out.println(value.toString()); + } +} diff --git a/src/main/java/buttondevteam/presents/hello/HelloComponent.java b/src/main/java/buttondevteam/presents/hello/HelloComponent.java index ec66a0d..1398fe8 100644 --- a/src/main/java/buttondevteam/presents/hello/HelloComponent.java +++ b/src/main/java/buttondevteam/presents/hello/HelloComponent.java @@ -4,6 +4,7 @@ import org.bukkit.plugin.java.JavaPlugin; import buttondevteam.presents.architecture.Component; import buttondevteam.presents.hello.commands.HelloCommand; +import buttondevteam.presents.hello.commands.HelloJSON; import buttondevteam.presents.hello.commands.HelloLoad; import buttondevteam.presents.hello.commands.HelloSave; import buttondevteam.presents.hello.commands.HelloTime; @@ -25,14 +26,17 @@ public class HelloComponent extends Component{ @Override public void register(JavaPlugin plugin) { + this.registerCommand(plugin, new HelloCommand()); + this.registerCommand(plugin, new HelloJSON()); + this.registerCommand(plugin, new HelloSave()); + this.registerCommand(plugin, new HelloLoad()); + this.registerCommand(plugin, new HelloTime()); + this.registerListener(plugin, new HelloBedsplode()); this.registerCommand(plugin, new HelloCow()); this.registerCommand(plugin, new HelloItem()); this.registerCommand(plugin, new HelloMagicPotato()); - this.registerCommand(plugin, new HelloSave()); - this.registerCommand(plugin, new HelloLoad()); - this.registerCommand(plugin, new HelloTime()); this.registerCommand(plugin, new HelloBlock()); this.registerCommand(plugin, new HelloParticle()); this.registerCommand(plugin, new HelloSound());