{REQ} Anit-Drop

Discussion in 'Archived: Plugin Requests' started by MrGermanrain, Dec 26, 2012.

  1. Offline

    MrGermanrain

    I need a plugin where you can shoose what items can not drop, at death or when pressing q.
     
  2. Offline

    FlaminYogurt

    This doesn't seem to be possible, disabling throwing of certain items is easy, but on death is a completely different story...
     
  3. Offline

    Slipswhitley

    Easly possible. Will do for free since its so simple. :)

    Should be about 10 minutes :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  4. Offline

    Doskei

    I've been looking for the "death" half of this plugin for a while. Ddecky's No Drop claimed to do exactly what I want to do (nothing drops on death, it's all just lost), but that plugin never worked and no work has been done on it in ages.

    Slipswhitley, if you do make this, I'll be quite grateful as well!
     
  5. Offline

    Slipswhitley

    I'm working on it now
     
  6. Offline

    Slipswhitley

    Sorry ive been away on holiday and havn't been able to finish it yet :p Just needs a little testing atm then I'm algood to upload it. p.s I added alot of cool features including whitelist, blacklist etc

    P.S
    Code:
    @EventHandler
    public void onPlayerDeath(PlayerDeathEvent event) {
     
      int exampleitemid = 1;
      for(ItemStack item : event.getDrops()) {
        if(item.getTypeId == exampleitemid) {
       
          event.getDrops.remove(item);
       
        }
      }
    }
    Its not . . . [​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016

Share This Page