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:
I'm full op and server owner so I should have all by default.
I can edit their ender chests but when I open their inventory I can't edit them.
I even gave myself the editinv node and it still doesn't work
Mc very 1.15.2
In reply to coolmansteel:
Your permission plugin likely comes with some commands to test reported permission state, I suggest you use those to check OpenInv's permissions on yourself.
I.E. for LuckPerms, you can run /lp check yourname OpenInv.editinv
Unfortunately, 1.15.2 is not a particularly descriptive version. Between Spigot, Paper, and all the other major forks, there are literally thousands of server builds you could be running. You also didn't include your OpenInv version, though nothing has changed regarding permissions in quite a long time.
In reply to Jikoo_K:
1.15.2 paper
lates ver of openinv (4.1.0)
and lp says openinv.editinv true
In reply to coolmansteel:
1.15.2 Paper still leaves 211 possible versions you could be running. Unable to reproduce on Paper #211.
Sorry, that's on you, I don't help people fix their permissions - there's too much variability.
In reply to Jikoo_K:
paper 143
If i use quickshop i can't create a shop.Is permission conflict?
In reply to realcommandandorder:
Try disabling SilentContainer and AnyContainer. Sounds like a regression of an incompatibility fixed a long time ago in the original QS.
In reply to Jikoo_K:
Players without permission cannot create shops,too.And they can't use anychest and silent chest
In reply to realcommandandorder:
Definitely not OpenInv's problem then, block interaction (which is how QS checks permission to access chests last I was aware) is only cancelled if the user has permission for any/silent container and has one or more enabled. Were OpenInv involved at all, you would see OpenInv's messages or have a container open.
This seems like a regression of QuickShop#139, but since the original appears to be archived now you should contact whoever maintains whatever version you're using instead, possibly using that link for an additional information reference.
Hello,
Is there away to change the settings so i can edit a player inventory when i'm in spectator mode, currently it wont let me change it around.
Any help would be appreciated
In reply to Forge_User_78404653:
Haven't looked into it, but I assume because inventory interaction is not supposed to work as a spectator all clicks start out cancelled by default.
Hello. I like this plugin so much and I need it sometimes to get a control on my server. But there is an issue. I have another plugin that deals with turrets. The turret plugin (DefensiveTorrets) plus the OpenInv makes the turret ammo disappear and has to do with something from the inventory. I've already contacted the developer of the turrets plugin and he tells me that his plugin doesn't do much with inventories and that I should tell you. Can you do something please? I'm in version 1.15.1, I use Spigot and the other plugins don't matter because I've already tested them with each and every one of them, combining them and almost juggling until I discovered that the turret ammunition problem was because of your plugin. Can you do something to fix it? Thanks and sorry to bother you.
By the way. This plugin works in 1.15.2?
I'm sorry for my English! :D
In reply to Xuberaxel:
OpenInv doesn't remove items unless someone's doing the removing, that definitely sounds like an issue with how that plugin's author is handling their custom items. I did push a commit that will likely improve compatibility with plugins that modify inventory immediately on login, so next release may fix the compatibility issue.
Yes, OpenInv works with 1.15.2. Your English is great!
In reply to Jikoo_K:
Hello,
Is there away to change the settings so i can edit a player inventory when i'm in spectator mode, currently it wont let me change it around.
Any help would be appreciated
FM
I cant edit offline inventory, again.
This worked before on 1.14, witht the 1.15.2 i can't edit anything.
Using OpenInv.editinv OpenInv.* openinv.* openinv.editinv
Even mixing with OP, doesn't work.
In reply to apatukapy:
Please clarify - edits do not persist, you do not have permission to use /openinv, or you cannot open inventories of offline players? Sounds like an issue with your permissions configuration, but I can't do anything with this little information. What server version? Exact implementation, including hash, please. What version of OpenInv?
Works like a charm straight outta da box
I have an issue where containers stay open after opened. Is it issue of a conflicting plugin?
In reply to PersonWithLargeEarlobes:
Could be a conflict, could be your server version. Can't help you without any information.
In reply to Jikoo_K:
My server is running 1.15.2. I didn't see any errors in the console.