OpenInv
Open anyone's inventory or ender chest and modify it in real time! Works with offline players!
Description
This plugin allows you to open any player's inventory or ender chest and interact with it in real time. You can also do it for offline players! This includes access to the armor slots as well as being able to drop items as if you were the player by moving them into the unused slots to the bottom right. Additionally, you can open any chest that is blocked with blocks above it with AnyContainer and open containers silently (no sound or opening animation) with SilentContainer.
Features
- Read-only permissions for OpenInv and OpenEnder! Just don't give the editinv and editender permissions nodes!
- Administrators can modify any user's inventory or ender chest contents as they wish, in real time.
- Access from anywhere! No distance or obstacle limitations.
- Permissions support.
- Player inventories and ender chests of any player can be opened. Even for offline players!
- Using the openinv or openender command without any arguments opens the last accessed player's inventory/ender chest.
- Search all online players for a certain item in their inventory or ender chest.
- Protect players from openinv with exempt permission, and bypass protection with override permission.
- Cross-world openinv protection.
- Self-opening protection.
- Open containers that are blocked by solid blocks or ocelots with the 'AnyContainer' feature.
- Silent opening of containers with no sound or opening animation.
- Drop items as the other player (by putting it in the unused slots in the bottom right)
Installation
To install OpenInv, simply copy the plugin to your plugins folder and restart/reload your server.
Commands
Command | Aliases | Description |
---|---|---|
/openinv <player> | oi, inv, open | Opens a specified player's inventory. |
/openender <player> | oe | Opens a specified player's ender chest |
/searchinv <item> [minAmount] | si | Lists all players that have a certain item in their inventory. |
/searchender <item> [minAmount] | se | Lists all players that have a certain item in their ender chest. |
/searchenchant <[enchantment] [MinLevel]> | searchenchants | Lists all online players with a specific enchantment. |
/anycontainer | ac, anychest | Toggles AnyContainer mode (blocked container bypass) |
/silentcontainer | sc, silent, silentchest |
Toggles SilentContainer mode (open containers silently) |
Permissions (CaSe SeNsItIvE)
Permission Node | Description |
---|---|
OpenInv.openinv | Gives permission to use OpenInv. |
OpenInv.openself | Allows opening the inventory of the command user. |
OpenInv.editinv | Allows editing of inventories. |
OpenInv.openender | Allows opening of ender chests. |
OpenInv.openenderall | Allows opening of ender chests of everybody. Without this permission, someone can only open his own ender chest. |
OpenInv.editender | Allows editing of ender chests. |
OpenInv.search | Gives permission to use searchinv and searchender command. |
OpenInv.searchenchant | Required to use /searchenchant. |
OpenInv.crossworld | Allows cross-world use of openinv. |
OpenInv.exempt | Makes the player's inventory protected (unable to be opened). |
OpenInv.override | Gives permission to open anyone's inventory, even protected ones. |
OpenInv.anychest | Gives permission to open chests that are blocked by a block on top. |
OpenInv.any.default | Causes AnyContainer to be enabled by default. |
OpenInv.silent | Gives permission to open chests in total silence, without animation. |
OpenInv.silent.default | Causes SilentContainer to be enabled by default. |
Other
Source Code hosted on GitHub
Original Bukkit forum thread: http://forums.bukkit.org/threads/15379
In reply to Jikoo_K:
Alright i downloaded the wrong version,
thanks for the help and Have a great day!
4.2.1 has been uploaded for 1.19.1. If you cannot wait for the approval process to complete, the release it was automatically generated from is available on GitHub.
A reminder: Please do not use builds from third-party sources linked in the comments. While the posters are likely trying to be helpful, I have seen public forks of OpenInv and other popular plugins with forceops and will not be wasting my time verifying the linked builds.
For those of you who may be tempted to post builds to help others, OpenInv has a CI in the form of Github Actions. You are free to link to those runs' artifacts provided you add the usual disclaimer that dev builds are not guaranteed stability etc. I accept PRs for updates pretty promptly, though I tend to not push the update to a release until I have time to test myself.
In reply to Jikoo_K:
I'll do that, cheers.
Unfortunately I cannot edit that post on this site...
In reply to TauCubed:
I had already deleted the comment, probably why. I know you meant well, I'd just have to actually vet the build to feel comfortable having it around, and at that point it's faster to just verify that the current build off the CI works and trigger the automatic upload.
Do you know when you will be updating the pligin for 1.19? because i would really like to use it.
In reply to ihackerex:
7 June 2022. 1.19 was not available as a version via Curse at that point. I've updated the release to reflect the supported versions. In general I recommend reading changelogs - the build and upload process automatically includes the real version no matter what is available from Curse.
Hello,
I have a problem : I see "An error occurred. Please check the console for more info" when i type /openender NameOfMyPlayer
I use Mohist on Aternos, in 1.16.5 version
In reply to yoyomec_ng:
This is an issue with Mohist's mapping system, it's not an OI problem. See https://github.com/Jikoo/OpenInv/issues/59
In reply to Jikoo_K:
So if I understood correctly, and I probably misunderstood, there are no solutions to this problem.
In reply to yoyomec_ng:
It's not an OI problem - Mohist is claiming to be Craftbukkit for NMS purposes (which is why OI reports itself usable at all), but they have a mapping error. They could fix their mappings to include the ender chest fields, but since they haven't fixed it in years, I wouldn't hold your breath despite their claims that they're committed to fixing mapping issues like that.
In reply to Jikoo_K:
But I know some plugins whose endersee works perfectly in my version of mohist
In reply to yoyomec_ng:
Those are likely plugins that don't offer offline viewing or aren't completely identical inventories under all circumstances. OpenInv requires a certain level of access to server internals to function because the inventory it opens is always backed by the same internal contents listing as the viewed inventory. That means that even if a view desync occurs (which is also unlikely, because it is capable of updating inventories even during plugin-induced content changes) OI is less capable of duplication bugs than alternatives.
In reply to Jikoo_K:
Okay, I understand, but clearly, is there a solution, yes or no, for example a plugin that would allow compatibility with OI ?
In reply to yoyomec_ng:
Yes, Mohist can update their mappings to include the relevant ender chest details. This is not an OI/plugin issue. It is a missing server remapping, and needs to be fixed on the server's end.
I noticed on 1.18 I can no longer access the armor and offhand slots of someone's inventory? This has drastically reduced the usefulness of the plugin for us and I was just curious as to why that is or if I'm missing something.
In reply to Letholldus:
OI still provides those slots in 1.18. You are likely accidentally using a command from another plugin, such as Essentials'
/invsee
. You can verify that you're using the correct command by using the plugin name as a prefix, i.e./openinv:oi
.In reply to Jikoo_K:
Got it working, was an issue with the version I had, for some reason the first time I downloaded it, it was an older version
Hello, I posted an issue on github as I can't get the plugin to run on 1.12. Thanks for supporting this plugin!
Hey! I got this Plugin for my server and it works great! but I can't get it to work on 1.18.2 could you maybe work on a newer version for *1.18.2?*
In reply to cqmicz:
The update to 1.18.2 has been available via dev builds (downloadable from GitHub Actions runs) since 28 Feb. I did not have time to test, so no release was made. The release has now been tagged on GH, and it appears that the automation of the upload to Bukkit finally worked correctly (hooray!) so the file will be available for download via Bukkit when staff approves it.