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
Can anyone help?
After the update, it seems I am unable to take things out of inventories/chests.
I have all the correct permissions enabled.
Anyone know the solution to this?
In reply to zippb:
Updating from which version? What version are you currently on? What behavior do you see and what do you expect?
OI does not have a view-only mode for chests, so if you're experiencing that, it is not from OI directly.
In reply to Jikoo:
So I just updated from 1.21 to the latest version 1.21.4.
We experimented and found out that I can't take from online people only.
I hadn't changed the permissions at all, which is why I am confused it is not working.
Currently, I am the only one who has all the permissions by giving the Owner role all the permissions. To prevent everyone else from using it, I have only put:
openinv.access false
for the default role. I do inherit the permissions from the default, but the last update worked and overrid the permission.
I am using the most recent version of luck perms and I only have two roles and one track.
Roles/Track:
Default --> Owner
In reply to zippb:
Okay, so online-only would be due to
settings.equal-access
in your config being set toview
presumably - have you granted yourselfopeninv.access.level.1
? If you have, and players have not been granted that access (default access should be 0) that sounds like an error in view-only calculation. If you're the only one who will be using OpenInv, try changing the config value toallow
as a workaround.In reply to Jikoo:
I don't know what happened. I think I reloaded the plugin, but it works now!
Sorry for the late reply, but thank you very much for taking the time and for all your help!
In reply to zippb:
Glad everything's working at least! I did double-check on view mode just in case, and it appears to be working correctly. Since this sounds similar to problems others have had with it since the addition, I've gone ahead and reverted the default behavior to allow for equals. Hopefully that will make things easier for new installs following next release even if it wasn't necessarily what you were encountering.
If it does crop up again, please let me know.
In reply to Jikoo:
Awesome! Thank you for your diligence in solving this and maintaining the plugin!
is there a 1.20.1 version?
In reply to m13ke:
You can filter by game version in the Files tab. I am usually reliable about tagging supported versions unless Bukkit staff do not add them as an option.
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?