I'd like a plugin that disables all the items drop on death. For the first version don't add world support(So it can be quick!) For the other versions you can add. I need that as soon as possible. If you can today it would be perfect! Add me on skype: vasil7112
https://www.dropbox.com/s/r1yqap29qodp761/NoDeathDrops.jar Source included. 1 permission node to bypass it: nodeathdrops.bypass
Thanks Also if i want on player death to drop an item or item id how do i do that? i mean whats the source code? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
You could try something like: Code: List <ItemStack> l = evt.getDrops(); Iterator<ItemStack> i = l.iterator(); while(i.hasNext()){ ItemStack item = i.next(); if(item.getTypeId() != <KEEPITEMID>){ l.remove(item); } }
I mean when they die..They lose all of their items, and when they respawn they have no items. Also there are no drops so the items get automaticly deleted..But each time you kill someone, he drops an item with a quantity..Even if he don't have it.
OH! Like a PVP Drop... I'd imagine the logic would be something like a random Material type (without the ones that are silly, like air, grass), then a random stack size (you can add weighting if you want to make it more for materials and less for equipment, etc). I am currently at work, but this sounds like something fun to work on at home
Yes..If you wanna help me for some small things please contact me at skype. My username is vasil7112 there Thanks! But you still didn't gave me a code to do that Please when you get online or someone else, Can you give me the code on player death to drop a specific item? Thanks! Someone? Pleaseeee EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I tried this on craftbukkit 1.2.5 R3.0 and it doesn't work, even with the permission. My items still drop.
I made my own mini plugin with that. I can send you a customized one if you want. Just add me on skype, vasil7112