You should add a few prints to see if the values are what you expect. Figure out what the itemlist array looks like when you go to set the...
The data short will handle all of the type, tier, and duration. http://www.minecraftwiki.net/wiki/Data_Values#Potions
If statements, man. // I'll split it into multiple lines so it's easier on the eyes. boolean isGrass = (event.getBlock().getTypeId() == 31 &&...
I'm assuming the block you're talking about here is a tree, flower, wild grass, mushroom, right? I had this same problem. I simply hooked into...
I would make an array of paired objects. Pair<Integer, Byte>[200] Items; Items[0] = new Pair<Integer, Byte>(17, 2); // I think that's birch wood?...
"i can't believe you left me to die, thinking we were making a town plugin." Actually, I picked up the project again. I finished the main...
Start with making plugins. Studying java with no way to apply it is useless. EDIT: I should really be more specific. Anyway, consider plugins...
Haha. Why don't I make a thread so you can review the plugin and figure out whether you want to assist or not.
@DrAgonmoray Do you want to instead just help me with my town mod? I'll let you do all the boring things like data storage/retrieval! C'mon, an...
Haha, I don't think so, but you could probably replicate the event with little problem by checking if the area around the clicked block is grass,...
My complaints with any type of economy systems: - Players are few, so there's never really enough things to buy with money. - Not enough...
Haha, we meet again. I came onto this forum to post about my own town plans, and I saw a thread titled "towny alternative," so I *had* to check it...
Oh, cool. I'll just have to take the code I need out of it, though, because there are a few mistakes. Some things I think you should be aware of:...
Well, if you find no decent events that fire when a block's data changes, I'd keep a constant loop going, checking every 20 ticks to revert the...
I'm writing a shop plugin, and I want to display an object's name given an ID and data. My current method (return new...
@KillerSmurf I mean, like, how can a person define a plot of land? Does it have to be entered by a server admin into some text file, or can the...
Should I be using another method to update the inventory?
I can't be sure because I've never tried something like this, but knowing that bukkit is meant for server software, I would think not. Though...
Glancing through, I don't think anyone actually pointed out the problem. plugin is your null value. You set instance = plugin, rather than plugin...
I meant something more like this: event.getEntity().getWorld().createExplosion(event.getEntity().getLocation(), 12); // 4 is TNT, I believe This...
Separate names with a comma.