1.11.2 Disable Vanilla Inventory

Discussion in 'Spigot Plugin Development' started by miguelrebolo, May 14, 2022.

  1. Hello, I am trying to delete some things from vanilla minecraft, when I press the 'E' key I can open the inventory. In the screenshot I attached, you can see it better. I want to remove that because I don't want to equip anything to the player. I've checked the spigot and bukkit forums and can only find it blocking taking items from a custom menu.
  2. Player inventory is client-side, so you can't block it using the 'InventoryOpenEvent' event.
    Btw if your server is in 1.11.2 you could check in the PlayerAchievementAwardedEvent if the achievement is Taking Inventory, and if it is cancel the event and then close the player's inventory
    • Agree Agree x 1