Hello everyone! I have been a member of the BukkitDev staff for a few months, I've talked to some cool people, I like the community, but these...
Sorry for the delay (I've been working), I ended up using another Method to nerf armor on my server -- removing it completely. I run a Bending...
Hello, just wondering if it is possible to reduce the amount of protection armor gives you by a factor. IE 1/6 of the protection it would normally...
Don't forget plugin.saveConfig(), otherwise the data wont persist through a reload.
zombie.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 1000, 1000), true); Check your syntax for PotionEffectType. The value 1000 is a...
This method is working wonderfully, it doesn't hang the server, but I am getting an exception when running the method. The Stack Trace:...
How would I toss something like this into a LinkedList and be able to retrieve all the data? I don't have much experience working with...
Hello, so I am working on a ban plugin that runs on MySQL / SQLite. I am building a converter into the plugin so you can convert from MySQL to...
Hello, how would I use the player.damage() method and have it negate armor? Just do raw damage on the victim?
If I wanted to deal damage to an entity, but wanted it to "pierce" the armor they have on, how would I do that?
Pastie Link To Error: http://pastie.org/8370976 Anyone know how to fix it?
Separate arguments in your if statement with && (this means AND). @EventHandler public void onEnchant(EnchantItemEvent e) { if...
You don't need .getContents(), it already has the contents when you get the data from the HashMap.
Just use one event and check if the item that is being enchanted is a Diamond Pickaxe. If it is not, have it cancel. You only need one event here,...
Create a new HashMap containing the player's name and inventory. public static HashMap<String, Inventory> vanishInvs = new HashMap<String,...
Really not sure where this error is coming from, I am getting the error below in my console. It has something to do with the config.yml I'm sure,...
// Create Recipe ShapedRecipe ironBarding = new ShapedRecipe(new ItemStack(Material.IRON_BARDING)).shape(" i", "iii", "i i").setIngredient('i',...
1+ days for approval? Welcome to Bukkit. Approval times can be a pain, but it's well worth it. It's taken my plugins many days to get approved....
Looks to me like you have an extra } near your PVP Command. Your code looks like this, remove that extra bracket at the end. if...
Set<String> items = plugin.getConfig().getConfigurationSection("").getKeys(false); That should do the trick, returns everything in a set. You...
Separate names with a comma.