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
What if i want to let moderators open the enderchests of others but not them selves? Could those two become parallel permissions, instead of the current linear approach?
So that
openinv.openenderall would let u open enderchests of anyone other than yourself.
openinv.editender would let u edit any enderchest you have permission to open.
openinv.openender Would allow you to open your own enderchest.
openinv.editself Would allow you to edit inventories belonging to yourself.
I would really like to give mods the option to use this feature, but remove the option of basicly never using an enderchest ever again.
In reply to jjkingcv:
Doable but would need some fiddling to preserve existing behavior. Please open an issue so I don't forget.
is OpenInv out for 1.17.1 yet, if not when might it be
In reply to jackdejed1:
1.17.1 should not require any changes on OI's end from 1.17, so I guess the answer is yes, 1.17.1 support has been out for over a month.
In reply to Jikoo_K:
I am updated to the latest release and it gives me the following error:
Your server version (v1_17_R1) is not supported. Please check https://github.com/lishid/OpenInv/releases for an update.
In reply to OfficialOffTopicGaming:
If you poke around at all there or glance at releases here on Bukkit you'll see why that's the case. Unfortunately, I can't edit the old release location message.
I can't use OpenInv with 1.12.2 since I am running java 11 instead of 8. I would love if this plugin could be backwards compatible with all versions instead of one build being for one or two versions
In reply to bandithello1:
See lishid#173. Update your server, downgrade Java, or fork OpenInv yourself (or pay someone to do it for you) and backport the changes to support Java 9+ to the 1.12 module.
You can read my thoughts on 1.12 and other outdated versions at lishid#185.
Any time you want to maintain the same code in 20+ places to support for outdated versions that a tiny fraction of people use running, feel free to step up to the plate. Backporting changes is a tremendous amount of boring, thankless work - more complex fixes can take hours of copying, pasting, and slightly adapting code. Sometimes the area's completely different and requires a deep dive into NMS to figure out what changed. Support for Java 9+ is a particularly complex beast because it involves overwriting pretty much every method to direct to new variables. You can't just hope inventory logic didn't change between versions, you have to do a comparison.
Is there any plans on making a 1.17 update soon? I would love to have this on my server.
In reply to lovelessduck48:
A build for 1.17 was uploaded 2 days ago and has just been approved. If you're wondering about updates, check GitHub.
In reply to Jikoo_K:
Ah thanks, I didn't think to check the Github. I installed Openinv on my 1.17 spigot server, with coreprotect and it crashed when trying to do commands. Later when I get the chance I will upload a pastebin of the crash details.|
EDIT: Here is the Crash Log: https://pastebin.com/62eh3Hkd
In reply to lovelessduck48:
Update your server. I think I need to add a giant red statement about that, because you're the 3rd person to get in touch about a Spigot bug that was fixed half a day before the release of OI on GitHub, let alone 2 days later when Bukkit's approval process finished.
Please, please, when you are using a fresh MC update, ensure that you are actually running the latest server version before trying to contact individual plugin devs. It wastes a lot of both of our time. I have to check that the issue is that you haven't updated, and in the communication time between your server isn't running the way you want it to.
In reply to Jikoo_K:
I'm using Apexmc and they handle Spigot for me, I thought it meant it was updated automatically. Thanks for the info, I am going to manually update it.
In reply to Jikoo_K:
So I just updated Spigot and it is working nicely, Damn Apexmc.
Hi there,
first of all: This is a great plugin and works pefectly for me. (except for one tiny little thing)
We have had some problems with cheaters and are now able to clear their offline inventories, and offline enderchest with a command.
But all persons with openinv permissions see the chests remain open, when the inventory was closed with ESC. The inventory closes but the chest is still opened, for that specific player. (Only admins)
Do you know, how to fix this please?
Ps.: I am on 1.16.5 (I know its compatibility is only to 1.15 but it works. Except for the open chest thing - Maybe there is a work-around for that)
Thanks in advance and keep the good work up! =)
Pps.: The Dropbox Link on your site isn´t working. 404.
In reply to bamstian:
Make sure you're turning off silent/any container when using a vanish plugin - many of them are incompatible because they implement their own technique for handling containers, which will lead to clientside desync. You can do this by creating aliases using Bukkit's commands.yml, i.e. /vanish -> /openinv:sc off, /openinv:ac off, /yourvanishplugin:vanish. Alternately, your vanish plugin may have a compatibility mode in its configuration.
There is no DropBox link on any sites I maintain OpenInv on. One assumes you tried to download it off the ancient Bukkit forums thread for some reason, which is purely there for historical purposes.
In reply to Jikoo_K:
I am using Essentials X, no other vanish-Plugin. It´ happens also if I am visible.
I will try to delete the silencontainer Permission and test again.
Thanks so far! =)
Hi I notice an major issue within this plugin.
whenever I type /openinv [playername]
the gui to open the player inventory name is wrong and shows the user who entered the command name instead.
Please fix, it's highly annoying to have to confirm multiple times that this is the user's inventory.
https://prnt.sc/132b26w
In reply to DTM_Panda:
Been fixed in dev for over a month, see #13. Guess I should push out a release though. I was waiting on finishing search rework but I haven't managed to find the time to finish tab completion for that.
In reply to Jikoo_K:
Soz for the late reply, its been a crazy two days for me and couldn't find the time to reply.
also ah ok hmm how do I download the dev version of openinv as I looked around the github with #13 and couldn't find the .jar to update the plugin or is it a bit different then the normal release method that every developer uses.