Hello everyone, I've made a KitPvP plugin, the only problem is that people can just drop all their stuff. I want to get some code that you can only drop soups/empty stews. And also on death, I only want soups (The filled ones) to be dropped. I don't want a plugin, but just some code so I can put it in my KitPvP plugin Thanks, Tim/tovd1234
tovd1234 Wrong section... This section is for Requests not Developement... And after a bit searching on Google, you would have found what you're looking for. Those are pretty easy Things and you will find a solution for sure. But I should help you a little bit at least: Code:java @EventHandler public void onLeave(PlayerDropItemEvent e) { if (e.getItemDrop().getItemStack().getType() != Material.MUSHROOM_SOUP) e.setCancelled(true); } And with the drops on Death: http://lmgtfy.com/?q=bukkit+prevent+item+drop+on+death