Changing something in item.getItemMeta doesn't update the original itemstack. Declare an ItemMeta object, edit it, and set it back to the original...
bump.
Hey Everybody! I'm trying to get a HorseInventory from a string saved with Gson. The code below works for every mob type with an inventory...
I would keep a hashset (or map depending on if what you're inviting them to is single instance or if you would need more information stored) of...
You're going to have to find that yourself. https://github.com/Bukkit/mc-dev/tree/master/net/minecraft/server
I'm not going to spoon feed you, but your issue might be that you're always incrementing your counter, so you need to be checking which value is...
Why are you updating in a delayed task? Also, you should check the updateInventory actually works for furnaces, chests, etc. I've never used it...
loop through all the values between the v1.x and v2.x, and inside that loop through all the values between your 2 z's. Then whatever value each...
Yikes... I would make a scheduler for this. That way you could check it at further apart, fixed intervals and save the server a little hassle.
Alternatively, you could use entity metadata. That way you wouldn't have to keep a list anywhere and could simply check each mob for your...
Sweet. Thanks
Would you mind elaborating as to why? I'm basically trying to decide if it's better to keep a lot of things in memory, or access a file a lot of...
Hey guys, I'm wondering about the pros and cons of these 2 systems. I've got maybe 200 integers that need to be read in from a config file. What...
That was a joke...
Right click on your project, then go to properties, java build path, and add in the bukkit jar.
Separate names with a comma.