Added missing dependency, registered command
This commit is contained in:
parent
5c7c0f9fb4
commit
d05e77b908
3 changed files with 31 additions and 3 deletions
5
pom.xml
5
pom.xml
|
@ -81,5 +81,10 @@
|
||||||
<artifactId>javax.json-api</artifactId>
|
<artifactId>javax.json-api</artifactId>
|
||||||
<version>1.0</version>
|
<version>1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.glassfish</groupId>
|
||||||
|
<artifactId>javax.json</artifactId>
|
||||||
|
<version>1.0.4</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
19
src/main/java/buttondevteam/presents/StaticMain.java
Normal file
19
src/main/java/buttondevteam/presents/StaticMain.java
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
|
@ -4,6 +4,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import buttondevteam.presents.architecture.Component;
|
import buttondevteam.presents.architecture.Component;
|
||||||
import buttondevteam.presents.hello.commands.HelloCommand;
|
import buttondevteam.presents.hello.commands.HelloCommand;
|
||||||
|
import buttondevteam.presents.hello.commands.HelloJSON;
|
||||||
import buttondevteam.presents.hello.commands.HelloLoad;
|
import buttondevteam.presents.hello.commands.HelloLoad;
|
||||||
import buttondevteam.presents.hello.commands.HelloSave;
|
import buttondevteam.presents.hello.commands.HelloSave;
|
||||||
import buttondevteam.presents.hello.commands.HelloTime;
|
import buttondevteam.presents.hello.commands.HelloTime;
|
||||||
|
@ -25,14 +26,17 @@ public class HelloComponent extends Component{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void register(JavaPlugin plugin) {
|
public void register(JavaPlugin plugin) {
|
||||||
|
|
||||||
this.registerCommand(plugin, new HelloCommand());
|
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.registerListener(plugin, new HelloBedsplode());
|
||||||
this.registerCommand(plugin, new HelloCow());
|
this.registerCommand(plugin, new HelloCow());
|
||||||
this.registerCommand(plugin, new HelloItem());
|
this.registerCommand(plugin, new HelloItem());
|
||||||
this.registerCommand(plugin, new HelloMagicPotato());
|
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 HelloBlock());
|
||||||
this.registerCommand(plugin, new HelloParticle());
|
this.registerCommand(plugin, new HelloParticle());
|
||||||
this.registerCommand(plugin, new HelloSound());
|
this.registerCommand(plugin, new HelloSound());
|
||||||
|
|
Loading…
Reference in a new issue