unanonymous'd
This commit is contained in:
parent
3ae2b0c028
commit
196efad665
3 changed files with 18 additions and 27 deletions
|
@ -5,20 +5,15 @@ import com.google.gson.GsonBuilder;
|
|||
|
||||
public class StaticMain {
|
||||
public static void main(String[] args){
|
||||
|
||||
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
class output{
|
||||
String ali = "pls";
|
||||
String iie = "whaddap";
|
||||
String norbipeti = "¯\\_(ツ)_/¯";
|
||||
}
|
||||
|
||||
GsonBuilder builder = new GsonBuilder();
|
||||
Gson gson = builder.create();
|
||||
|
||||
System.out.println(gson.toJson(new output()));
|
||||
}
|
||||
static class output{
|
||||
public String ali = "pls";
|
||||
public String iie = "whaddap";
|
||||
public String norbipeti = "¯\\_(ツ)_/¯";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,12 +15,7 @@ public class HelloJSON extends ModCommand{
|
|||
@Override
|
||||
public boolean OnCommand(Player player, String alias, String[] args) {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
class output{
|
||||
String ali = "pls";
|
||||
String iie = "whaddap";
|
||||
String norbipeti = "¯\\_(ツ)_/¯";
|
||||
}
|
||||
|
||||
|
||||
GsonBuilder builder = new GsonBuilder();
|
||||
Gson gson = builder.create();
|
||||
|
@ -28,5 +23,10 @@ public class HelloJSON extends ModCommand{
|
|||
player.sendMessage(gson.toJson(new output()));
|
||||
return true;
|
||||
}
|
||||
class output{
|
||||
String ali = "pls";
|
||||
String iie = "whaddap";
|
||||
String norbipeti = "¯\\_(ツ)_/¯";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -18,20 +18,16 @@ public class HelloJSONPage extends Page {
|
|||
public Response handlePage(HttpExchange exchange) {
|
||||
return new Response(200, getResponseString(), exchange);
|
||||
}
|
||||
|
||||
class output{
|
||||
String ali = "pls";
|
||||
String iie = "whaddap";
|
||||
String norbipeti = "¯\\_(ツ)_/¯";
|
||||
}
|
||||
private String getResponseString() {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
class output{
|
||||
String ali = "pls";
|
||||
String iie = "whaddap";
|
||||
String norbipeti = "¯\\_(ツ)_/¯";
|
||||
}
|
||||
|
||||
GsonBuilder builder = new GsonBuilder();
|
||||
Gson gson = builder.create();
|
||||
|
||||
return gson.toJson(new output());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue