AntiDrops

Discussion in 'Archived: Plugin Requests' started by KitWarfare, Aug 16, 2012.

  1. Offline

    KitWarfare

    I need a plugin that disables all drops. Including Death Drops and Throwing Items. Also I want players to be able to drop items, just have the items get deleted.
    I need this plugin don relatively fast, but don't feel rushed.

    Thanks
    Jaice
     
  2. Offline

    RingOfStorms

    I can do this in about two minutes, so give me two minutes ^_^
    KitWarfare
     
  3. Offline

    KitWarfare

    Mind sharing the source when your done? Btw I love you
     
  4. Offline

    RingOfStorms

    sure done
    ill edit when I get a download up

    KitWarfare
    <Edit by Moderator: Redacted mediafire url>

    and source will be up in a sec

    Assuming You can make a listener, it would take 3 lines of code to do this (You don't really need the @EventHandler) :p
    Code:
     
    @EventHandler
    public void entityDrop (ItemSpawnEvent e) {
    e.setCancelled(true);
    }
     
    
    Yes that is it ^_^
     
    Last edited by a moderator: Nov 9, 2016
    np98765 likes this.
  5. Offline

    KitWarfare

    Lulz, that's it? Ok thanks. It works.
     

Share This Page