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
Would it be at all possible for me to have permission to decompile this plugin so that way it may be ported to the Fabric Plugin API? All credit would be given to you, of course.
In reply to Daemris:
OpenInv is open source. Why would you bother decompiling it?
In reply to Jikoo_K:
Because my brain is smooth and I didn't realize that lmao
I love OpenInv, but it doesn’t work properly with SuperVanish. That plugin also lets you open chests and other inventories without a sound effect or animation whilst invisible, but that doesn’t work with OpenInv installed unless its silent chest feature is enabled. Could compatibility with SuperVanish please be added?
A workaround could be to add a way to turn silent chest on or off without toggling it (e.g., /sc on and /sc off) so that one could add aliases that perform both /vanish on and /sc on—and /vanish off and /sc off, respectively. That would be great!
In reply to Forge_User_49840962:
It's actually AnyContainer interfering. If you turn it off, your vanish plugin should be able to handle silence on its own.
I won't personally be adding support for specific plugins - to me that's a slippery slope, there are a lot of requests for specific per-world inventory, ender chest modification, etc. plugins and there are far too many to reasonably actually maintain.
A parameter instead of solely a toggle would be an easy enough change, but you should open an issue so I don't forget. I don't spend a lot of time developing these days due to time constraints.
Hey does this plugin works in 1.15.1?
Hello!
I am hopping that you are doing great, but I have a question:
I want my groups to have OpenInv.* , but without:
OpenInv.silent: true
OpenInv.anychest: true
I wanted to edit this in .rar , but everytime I edit something, I get error.
Will it be possible soon to change that, and if it's possible now, how then?
Thanks :)
In reply to GetTaeyeoned:
Why don't you either use a permissions plugin to negate those nodes or grant the individual permissions you want users to have? Manually editing a jar file's contents is not an efficient way to go about what you are asking - you would have to redo your changes every time a plugin you've modified updates.
In reply to Jikoo_K:
Thanks for respond. Ok, I will!
Have a nice day! ^_^
good pl
Would it be possible to make a command to check if there is an item in any container in the world?
I want to know who took that elytra
In reply to joeyzucchini:
You should be using a logging plugin such as CoreProtect for things like that. Possession is not a guarantee of theft.
That said, #113 describes what you want. Feel free to implement.
Update to 1.15.1
In reply to danechek:
Why don't you test and see if it works? 1.15.1 was a minor update that did not affect any classes OpenInv uses.
In reply to Jikoo_K:
it's not work for me, i got error
In reply to danechek:
Please post the error. 1.15.1 works fine for me.
Is it possible to edit the messages of this plugin?
In reply to Wolfling__:
Nope. There's been an issue open since 2017. It's not a priority for me due to the administrative nature of the plugin, but anyone's welcome to take a stab at it.
How do I make it so i can remove items from ender chests and inventories?
In reply to Immortal_Beast16:
Make sure you have the proper permissions assigned.