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
- OpenInv: Open anyone's inventory, even if they're offline.
- Read-only mode! Don't grant edit permission.
- Cross-world support! Allow access only from the same world.
- No duplicate slots! Only armor is accessible when opening self (if allowed at all)!
- Drop items as the player! Place items in the dropper slot in the bottom right. Can be disabled via permission!
- Allow any item in armor slots! Configurable via permission.
- OpenEnder: Open anyone's ender chest, even if they're offline.
- Allow access only to own ender chest! Don't grant permission to open others.
- Read-only mode! Don't grant edit permission.
- Cross-world support! Allow access only from the same world.
- SilentContainer: Open containers without displaying an animation or making sound.
- AnyContainer: Open containers, even if blocked by ocelots or blocks.
Installation
To install OpenInv, simply copy the plugin to your plugins folder and restart/reload your server.
Commands
Please see the wiki.
Permissions
Please see the wiki. For assistance upgrading to 5.0.0, check out the migration section.
Other
Source Code hosted on GitHub
Original Bukkit forum thread: http://forums.bukkit.org/threads/15379
I'm sorry. I know there is a lot of documentation but I am just not understanding what the permission nodes are or how to access/use them. We have 3 accounts that are op on our server and plan on only allowing these accounts to use this plugin. We also want all 3 accounts to have full and equal access, but only the main owner of the server is allowed to edit everyone's inventories and enders. The 2 accounts that are op cannot edit the owner's or each other's inventory (although they can view it) and cannot even view each other's ender. There is no issue in viewing anybody else's inventory or enders.
Could you please explain like I'm 5? How do I find the permission levels and how would I go about granting individual players equal permissions? I looked through the documentation and see that I would want to put openinv.access.level.4 *somewhere*, I am just not clear on where, or how to specify what player I would like to grant this access level to.
Thank you in advance, and I'm sorry about my inexperience!
In reply to gingertimelord14:
Sounds like you want your two ops to have untouched permissions (which will give them
openinv.access.level.1
and full permission to use the plugin by default) and the one super-op to haveopeninv.access.level.2
explicitly granted, though 4 would also be fine. You'll also want to have the config nodesettings.equal-access
set toview
, which is the default.The two lesser ops will not be able to view the super-op's inventory or ender chest (assuming all are online, at least), will both be able to access the other lesser op inventory and ender chest view only, and will have full edit access to their own/normal players' inventories and ender chests.
Per the note in the permissions page, permissions are not currently supported while players are offline, so if you want to fully protect the higher tier inventories from the lesser ops, you should also deny them access to offline players' inventories and ender chests.
In reply to Jikoo:
We want all op and super op to have the same permissions. We use this as an easy way to move items between our inventories as well as a way to moderate non op accounts, so we want both op's and the super op to all be able to view/edit both inventories and enders.
In the past we didn't have to change anything and by default anybody who was op was able to do everything. This is what we want again. How do I find the config node you are referencing? Again, I apologize for my ignorance but I have never had to mess with these settings before. Documentation seems to tell me *what* to do with the nodes, but not how to find or access them. Also, thank you for the quick reply.
In reply to gingertimelord14:
The config node is your config.yml, options are view, allow, and deny. Sorry, I misread your first post and thought you were asking for the behavior you currently had. Changing to "allow" should be what you want.
In reply to Jikoo:
Thank you so much. That worked perfectly!
Just a heads up for people trying to use OI on 1.21: Spigot changed InventoryView from an abstract class to an interface in https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/eae9f760c9849290b9e6ffc08fc93193df206a3d, so if you're using a more recent build, 4.4.6 will break. 4.4.7 has been released to account for this.
Hi, using this plugin causes the player's hotbar to duplicate into their inventory.
In reply to nuttapillar97:
Cannot reproduce. Please provide reproduction steps and software installed.
In reply to Jikoo:
Server is pufferfish 1.20.4
I have chestsort 1.14.1 plugin.
If I remember, I'll test with the sorting function turned off
In reply to nuttapillar97:
That is likely the issue, people have reported nebulous issues with sorting plugins before. Your sorting plugin should ignore top inventories with InventoryType.PLAYER.
In reply to Jikoo:
So do you think the sorting plugin is trying to sort the hotbar, and that's the issue?
In reply to nuttapillar97:
It is likely trying to sort the whole inventory, which is a really bad idea in general. The drop slots at the end of the inventory will always accept items, for example.
OI uses nonstandard slot numbers because of what it's doing - the hotbar is slots 0-8 on a normal player inventory. In the copy OI opens, those are slots 27-35 so they appear beneath the rest of the inventory content as one would expect.
In reply to Jikoo:
Thank you, that makes sense, and seems to be what's happening. Hopefully I remember to test properly when I get a chance.
Hi, I used this plugin a lot in my 1.20.4 Paper minecraft server and I loved it. But, I don't know, yesterday, I just take some ressources to my player and to regive another items and it duplicated quite a few items and at one point even quadrupled them. And the leggings, so the armor was on the chestplate, the chestplate on the leggings, the boots on the helmet and the helmet on the boots. (It happens to my player and to me in the same time when I was in the /openinv moving items), it duplicates my netherite sword, pickaxe, etc (but not everything) Do you know why it happens ? Ty a lot !
In reply to hazenar:
Usually things like that are due to an external influence like an inventory sorting plugin. If you can provide steps to reproduce with just OI installed or identify a conflicting plugin I can look into it further, but with this little info there's not much I can do to help.
Hello, I'm playing on 1.20.1 and was wondering if I want to open someone's inv can it ask him for permission and he can deny it
In reply to dimetro25:
Nope, OI is more of an administrative plugin than a user sharing plugin. Someone could definitely add that using OI's API, but OI does not have that capability.
In reply to Jikoo:
Do you happen to know any other plugin that can do that?
In reply to dimetro25:
Nope, sorry. I don't keep track of other inventory editing plugins as a sort of moral point because I don't want to accidentally copy design or code.
Hey, is there a permission node for /searchcontainer? I've been considering giving it to my players so staff don't have to help so much trying to find lost items. Thanks!