I believe both .equals() and == work in this situation. I suppose it's a matter of personal preference.
Untested Code, but should work static boolean pluginExplosion = false; //code snippit from your method causing explosion pluginExplosion =...
Comphenix beautiful, that's exactly what I needed. Thanks!
sorry, I thought that's where I posted it. My bad. bump EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I've seen plugins like orebufscator use packets to fake ores, so I know that it's possible to fake blocks through packets. I'm looking to show...
Don't delete buggy code, debug it. Code is seldom perfect first run. what you want to do (psudocode): PlayerInteractEvent if Action = right...
With player.getTargetBlock(), it's easy to find the block a player is looking at. It's less easy to find the BlockFace they're looking at. This is...
Simple code to prevent glitching through walls by spamming EnderPearls: package me.mythcaptor.AntiPearlGlitch; import...
Afraid I have my own projects, so I don't have the time to write full example code for you, but essentially what you'll want to do is create a...
Yes, but you'll have to tinker with the code a bit, the functionality isn't built in. Shouldn't be too hard though.
Ah, well thank you very much, I think your code is just what I was looking for. It's a shame that i'll have to depend worldedit for it to work,...
http://www.minecraftwiki.net/wiki/Armor#Defense_points http://www.minecraftwiki.net/wiki/Armor#Armor_enchantment_effect_calculation It's do-able...
Writing an economy plugin from scratch is a complicated prospect. You might want to code for an existing econ plugin such as Iconomy or Essentials...
You need a little simple math. You can read about fall damage HERE. Without accounting for protection or feather fall enchantments, which make the...
Would you please post all your code, or at least all of the relevant method? It's hard to help you with only the snippit you've given us.
Well I'm disappointed. I was hoping someone had developed a class to serialize any block. I may have to make one myself. Is there anything else I...
The data from block.getData() is a byte. It doesn't cover block inventories, sign text, and what have you. I can store location, id and data fine,...
Hey! In a plugin I'm working on, I need to store any blocks that are broken in an area to a file to be later restored. This could feasibly include...
I'm aware that you can name inventories that you create McAvarice . I'd prefer not to cancel the inventoryOpenEvent and create a new named...
Anyone know if it's possible to set the name of a chest when creating it? With 1.5, named chest ItemStacks retain their names when placed, but I...
Separate names with a comma.