Tag Info

New answers tagged


ItemStack, according to the Bukkit API, is by default ConfigurationSerializable, so you can simply use config.set(""+i, item); and then to retrieve it from the config you would use is = (ItemStack) getConfig().get("example"); The reason why you're getting a NullPointerException is because the serialize function converts it into a Map.


When a null pointer exception is thrown when creating a new file object, that means one of the parameters is null, described in detail Here. What you're looking for on line 84 is File file = new File("plugins/ServerAssets/saves/" + event.getPlayer().getName() + ".yml"); Which according to the Bukkit API final HumanEntity ...

Top 50 recent answers are included