Added missing dependency, registered command

This commit is contained in:
alisolarflare 2017-06-24 05:05:34 -04:00
parent 5c7c0f9fb4
commit d05e77b908
3 changed files with 31 additions and 3 deletions

View file

@ -81,5 +81,10 @@
<artifactId>javax.json-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.0.4</version>
</dependency>
</dependencies>
</project>

View file

@ -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());
}
}

View file

@ -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());