Compatibility
Minecraft: Java Edition
Platforms
Links
Creators
Details
ViewInventory
ViewInventory is a powerful Minecraft Spigot/Paper plugin designed for server administrators and moderators. It allows you to seamlessly view and manage the inventories and ender chests of other online players in real-time. Whether you need to conduct investigations, provide support, or simply observe, ViewInventory offers a smooth, intuitive, and interactive experience.
Key Features
-
Real-time Synchronization: Any changes made to the target player's inventory (by them or you) are instantly reflected in the GUI you are viewing, and vice-versa.
-
Offline Player Support (View Only): While direct editing of offline players' inventories is not supported due to data integrity concerns, you can still view their inventory contents.
-
Custom GUI Layout: A user-friendly 6x9 GUI is provided, clearly displaying the target player's armor, offhand, and main inventory slots.
-
Creative Mode Utilities: In creative mode, you can use the middle-click (block selection) to copy items from the target's inventory to your cursor, mimicking vanilla behavior. You can also pick up the target player's head.
-
Intuitive Controls: Standard inventory click actions (left-click, right-click, shift-click) work as expected to move and manage items.
Tab Completion: Easy-to-use command with tab completion for subcommands and player names.
Commands
/viewinventory <inventory|enderchest> <player>
Aliases: /vi <in|ec> <player>
Permissions
This plugin employs a permission system (adopted in version 1.1-beta~), enabling granular control over features. Players with OP permissions are granted all permissions by default.
1. The process of updating the GUI display (copying the target player's inventory to the GUI)
2. The process reflecting click actions (copying what the viewer clicked in the GUI to the target's inventory)
When clicking rapidly, process 1 would overwrite process 2. This caused the GUI to revert before changes were saved, resulting in items disappearing.
Solution
To eliminate this conflict, we fundamentally changed the approach.
Prioritize Click Operations
Valid click operations performed by the viewer within the GUI (such as item movement) are now handled by Bukkit's standard functionality. This ensures the exact same processing as Minecraft's normal inventory operations, preventing item disappearance.
Synchronize Changes Later
The modified GUI contents are now copied to the target player's inventory one tick after Bukkit completes the click operation. This completely eliminates processing conflicts and ensures changes are reflected safely.
Control Only Custom Slots
Plugin intervention is now limited solely to clicks on special slots like the trash can or glass panes. These operations cancel the event and are safely handled by the plugin.
This approach—“leave processing to Bukkit and reflect results later”—achieves both stability and a vanilla-like feel, eliminating the item disappearance bug.



