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
Running this on 1.11.2 server; working fine for the most part, except for /silentchest command..
Getting this error when silentchest is ON;
Trying to silently open a double chest and it disconnects me from server...
Edit: Forgot... Running OpenInv 3.0.5 ... :)
I cannot replicate this on Spigot or CB git-Spigot-7d78b81-27dd3ca.
Are you running the vanilla client? Is there an error in the console? What server implementation and version?
Edit: updated with actual version
Okay, just had a moment to think about the specific error message and the disconnect and wanted to share my findings;
I have the same server as standalone, for testing purposes, and with the same plugins. Since this was primarily a disconnect issue, I tested on this server and got the same error.
Afterwards, I removed the 2 plugins I was suspecting and voilà! Its working on 1.11.2.
So, the problem was not your plugin, but my 2 other plugins which allows older clients to connect, namely ProtocolLib and ProtocolSupport. So either these plugins are translating the silent chest opening event wrong or your plugin is using a deprecated method not available in 1.11.2.
Either way, hope this discovery helps with future versions and updates :)
Was working on Spigot 1.11, before this update. Haven't tested it yet!
I've released OpenInv 3.0.3 fixing SilentChest for 1.8 through 1.10. Ideally it will be approved soon, but Curse staff is probably quite busy with the site upgrade.
The chest don't make sound but it open and players can see it
My server version is 1.10.2 but I don't know what's about for the version of the plugin
but there's the pastebin
http://pastebin.com/mc61LDw2
Thanks. Looks like I included part of the special handling for shulker boxes from the 1.11 module that messed up a later segment while backporting the fix for container opening achievements not being awarded. I'll have a fix out soon, ideally.
@EverythingButNothing
No, you're not missing a plugin. I need more information to be able to help you. Get me the server version, OpenInv version, and a paste of the error from console when you get that message and I'll try to fix it.
Hey, when I type type /sc it works fine, when I open a chest it says: "Error while sending silent chest" and it leaves the chest open when I exit the chest. Am I missing a required plugin?
@BaumE__HD
I need more information to be able to do anything. Get me the server version, OpenInv version, and a paste of the error from console and I'll try to fix it.
Hum... There's a problem
It's an error, it's saying : Error while sending client chest
@MerlinK11
I'm sorry, I don't understand what you're trying to say. Could you please rephrase?
If you're having trouble with AnyChest, please make sure it's enabled by running
/anychest check
pleas Fix that OpenInv can't not Lock for Blocked Chest's over the chest it's a block Bloked the chest from Open please can fix that
@I9hdkill
Okay, thanks. I'll look into it. Seems like a Cauldron issue, we don't manually send the packet containing the contents, but everything else obviously works fine.
Edit: Cauldron appears to be horribly inconsistent. Sometimes it claims all chests are blocked, others it's fine. I wasn't able to reliably crash myself with SilentChest after the first couple attempts so I can't be sure, but I think the container counter was incorrect, causing a crash when the contents were updated. Ideally it's fixed in 3.0.2.
@Jikoo_K
Not using Cauldron 1.7.4, but Cauldron 1.7.10. OpenInv 2.2.9 Same clientcrash issue: http://pastebin.com/iUzLpAyG But don't think that people are using that featur that often.
Released 3.0.1, which fixes ShadowRanger's configuration changes being removed (whoops) causing configs to reset to pre-1.10 defaults.
UUID-based lookups are now supported for 1.7.5+ as well.HA WHOOPS I FORGOT AN IF STATEMENT THEY TOTALLY AREN'T. MY BAD.@I9hdkill
Out of curiosity, do you have issues with SilentChest on that 1.7 server? I recently closed 2 pretty old tickets that said it was causing an ArrayIndexOutOfBounds client crash on Cauldron 1.7.4, but I have no way to test it. I'm wondering if it was just an issue with Cauldron that's been fixed or if I actually need to look into it.