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 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.
hello, i have tried multiple times to re-install and delete this pluggin to get it to work but it isnt working, any help is much appreciated!
In reply to whoatemychicken:
Going to need more information than that to help you. Versions, any errors, what actually is happening, etc.
I have tried downloading the plugin on my server it is the latest version for 1.18 and i have no affecting plugins installed but when i try to install it, it says it had an error. Is it something to do with 1.18.1? I have been hoping for a 1.18.1 update for a while now but i have tried installing the current version multiple times and it hasn't worked i dont know if its a problem with the server or curseforge (Edit: Or if its a problem with the plugin pls try to fix this)
In reply to UKLabs:
Please post the error using a paste site. Can't help you without any information.
In reply to Jikoo_K:
When i install it the server throws error: 403: Forbidden is this problem with the server or curseforge?
In reply to UKLabs:
Sounds like you're not using a direct link to the file for wget or something. Curse's redirects require cookies and have since Curse was sold to Twitch. You can either get the direct link yourself, download in a way that supports cookies, or download from another source (i.e. GitHub) that doesn't require additional hoops to be jumped through for the command line.
That has nothing to do with OI, it's the Bukkit site's system.
can we toggle the aliases anywere?