That converts from a String (example: APPLE) the a Material object, are you sure it works with serialized string as well?
Yeah, if the method Material.fromString(String str) existed...
Can you explain that to me, since I need to deserialize the String too...
I have 5 years of experience with the Bukkit API I know how to store objects in YAML files by know haha :p I'm thinking about storing it in a...
Thank you for your answer, but I am not storing any data to YML files so your post is completly useless. I've rade some things about...
I am not stupid lol, ofcourse I need to deserialize it, but my question is how because there is no valid function to do this as far as I know....
I am using the .serialize function now, and setting it toString(), but how can I restore the map from that string? String item =...
Can you provide me with a valid example to serialize the ItemStack into a string with the Bukkit API?
Hi guys, I've made a Connection class a few days ago, and I thought why shouldn't I share it with you guys. It's pritty easy to use if you have...
Hi guys, It has been a long time since I've posted something here, good to be back. I have a question today, do one of you guys have a premade...
Any other plugins that you are using on your server?
You would need to do something like this, I didn't test it. Watch it over @EventHandler public void onPlayerChat(AsyncPlayerChatEvent e) { for...
Sorry my bad, you could try the InventoryPickupItemEvent
String path = "This.Item"; PLUGIN.getConfig().getItemStack(path); PLUGIN.getConfig().set(path, ItemStack);
Will return full when you try to pick up stone and you have already half a stack stone in your inventory.
Separate names with a comma.