Permalink
Browse files

fixed the adminium crash.

  • Loading branch information...
1 parent ded982e commit a0d94f927be342031aa345ed6a90524cf5d2019b @alecgorge committed Jun 14, 2012
View
4 src/com/alecgorge/minecraft/jsonapi/stringifier/BukkitStringifier.java
@@ -195,7 +195,7 @@ public static Object handle(Object obj) {
o.put("enchantments", enchantments);
return o;
- } else if (JSONAPI.instance.getServer().getPluginManager().getPlugin("Vault") != null && obj instanceof PlayerInventory) {
+ } else if (obj instanceof PlayerInventory) {
PlayerInventory p = (PlayerInventory) obj;
JSONObject o = new JSONObject();
@@ -237,7 +237,7 @@ public static Object handle(Object obj) {
return ((GameMode) obj).getValue();
} else if (obj instanceof Enchantment) {
return ((Enchantment) obj).getId();
- } else if (obj instanceof EconomyResponse) {
+ } else if (JSONAPI.instance.getServer().getPluginManager().getPlugin("Vault") != null && obj instanceof EconomyResponse) {
JSONObject o = new JSONObject();
EconomyResponse r = (EconomyResponse) obj;
View
BIN target/JSONAPI-bleeding.zip
Binary file not shown.
View
BIN target/JSONAPI.jar
Binary file not shown.
View
BIN test/plugins/JSONAPI.jar
Binary file not shown.

0 comments on commit a0d94f9

Please sign in to comment.