DarkView
Description
Allows server owners to view enderchests' contents.
Why this sort of delayed system? Simple:
Enderchests do not have any sort of viewChestForPlayer(String playerName) method, so a workaround is needed. This plugin listens to players opening their enderchests. When they close the lid, the plugin saves the chest's contents to memory.
When someone enters the command, the plugin checks the inventories stored in memory to see if a that player has already opened their enderchest. If so, it just returns their chests' contents for the command sender to view.
If they have yet to open their chest (see Notes), then the next time that they do, in addition to storing it to memory, it will already this command sender that their chests' contents are now available for viewing.
Commands
- /darkview [player] - [player] is the name of the Player whose enderchest you wish to see the contents of.
Permissions
- DarkView users SuperPerms, but defaults to Operators as well.
Downloads
- To download the compiled jar file, head over to the File page.
- To view or download the source, head over to the GitHub repository.
Notes
- Inventories are not saved to file, so do not survive plugin reloads, whether that be by the command /reload or server restarts.
Comments