Event Help

Discussion in 'Plugin Development' started by JJSfluffyduck, Nov 3, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    JJSfluffyduck

    What event is called when u throw a item
    (by hitting q)
     
  2. Offline

    gomeow

    Try PlayerDropItemEvent
     
  3. Offline

    JJSfluffyduck

    Thanks!

    is there a way so on death there no drops

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

    Njol

    Listen for PlayerDeathEvent and do event.getDrops().clear(). The player will loose his whole inventory this way however, so make sure to save their inventory somehow (event.getPlayer().getInventory().getContents().clone()) and set it back in PlayerRespawnEvent.
     
  5. Offline

    GRPGamer

    Bukkit does not support offline mode servers. Buy the game.
     
  6. Offline

    JJSfluffyduck

    thanks njol that helped alot and GRPGamer grow some balls
     
Thread Status:
Not open for further replies.

Share This Page