No, like he said: player.getInventory().addItem(new ItemStack(Material.POTION, quantity, (short) damageValue));
Sagacious_Zed Forgot about saving the default YAML in the resource.
You don't set any values in that code. You merely check if the path config-version has a certain value, set some global boolean to true, otherwise...
What's your code for generating your config.yml then?
xCyanide So what's your problem then? You're generating an empty YAML file. Do you want stuff in it? Or is the config.yml your problem?
Well, what are you doing with your data.yml's FileConfiguration object? You assign it, but where do you set the paths, etc?
Seems like that green particle can't be achieved without NMS/packets. Wasn't that important anyways, but thank you for the reference...
I believe it's in the EntityEffect enum. [EDIT]: I guess not, that's only the Wolf hearts when they are tamed.
Hello all, I was just curious if it was possible to visually recreate the effect obtained when bonemeal is used on seeds (specifically wheat seeds...
Meh, they are perfectly suitable for my needs. Custom objects can be easily saved to the config API and I don't have to fiddle with I/O. Plus,...
Np :)
Sets the "damage" value of the block... it is stored in the form of a byte. In the case of logs, changes the wood type.
YAML and the config API is easy to pickup for beginners, especially if you need to store a few booleans, strings, integers, etc. Also, what...
You don't have to save it, really. Basically in your serialize() method you do something like: Map<String, Object> map = new HashMap<String,...
You do not need to do Bukkit.getWorld(). Simply do player.getWorld().spawnEntity()...etc. Also, toString() does not return the name of the world, but...
http://wiki.bukkit.org/Introduction_to_the_New_Configuration#Serializing_and_Deserializing_Objects Basically your class that you want to save to...
If that's the case, he should make it a public global variable in his main class... Or generate a getter method for it.
What he means is what method do you need to call from what class? You don't even have any methods to be called, the method EDBE is called internally...
Have you tried to see if im is null first?
Try outputting the value of len to the console and see what you get.
Separate names with a comma.