So I've been working on my map for a while, and its a custom pvp game kinda thing. There, I want all the players to be unable to access their inventories because it might cause some errors, as in my minigame there are different classes with different skills etc. How do I do that?

  • I don't think you can do that. I might be wrong though.
    – Arperum
    Mar 18 '16 at 9:19
  • Would regularly removing items be good enough?
    – Unfair-Ban
    Mar 18 '16 at 13:06

If you are a developer you can look further into cancelling the OpenInventoryEvent, it would look something like this, with a little editing of course. Or you can look into premade code such as RegionInventoryBlocker.

    @EventHandler(priority = EventPriority.NORMAL)
public void onInventoryOpen(InventoryOpenEvent event)

If you are a regular user, you can use a plugin such as http://mods.curse.com/bukkit-plugins/minecraft/lobbytools to disable the movement of things around on your inventory, this should do the job. You can also look into many other plugins that do this job.

Other than that, there is no other known way to completely disable the inventory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.