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. Capture:
You could cancel the "PlayerPickUpItemEvent" if that's a solution for you. More infos : https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/player/PlayerPickupItemEvent.html I don't know if that's what you mean... I am sure you can't remove elements from the Bukkit Inventory
No. I want that when the player clicks on the letter E nothing happens. Something like CommandPreProcess to block tab
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