Stopping a Player from removing an item

Discussion in 'Plugin Development' started by xMakerx, Jan 27, 2013.

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

    xMakerx

    Hello, I want to make a plugin which sets it up so you cannot remove a certain item from your inventory. You cannot drop the item or replace it with another item. How can I incorporate this in my plugin?
     
  2. Offline

    ZeusAllMighty11

    InventoryClickEvnt, ItemDropEvent / DropItemEvent(forgot which)
     
  3. Offline

    fireblast709

    PlayerDropItemEvent :p.

    Also, you would need to listen to the PlayerDeathEvent to remove the drops if he dies, and the PlayerRespawnEvent to put a new item in the slot
     
Thread Status:
Not open for further replies.

Share This Page