Open anyone's inventory or ender chest and modify it in real time! Works with offline players!
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.
- 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)
To install OpenInv, simply copy the plugin to your plugins folder and restart/reload your server.
|/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)
|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.|
Source Code hosted on GitHub
Original Bukkit forum thread: http://forums.bukkit.org/threads/15379
1.19.4 - doesn't work.
Shows the message "This chest is already in use" when opening the chest or /invsee command...
please fix it.
In reply to hugkko:
That's not a vanilla message. You have some form of plugin conflict you will need to resolve.
In reply to gabbilabbi14:
I probably should just set up a form reply to this kind of issue.
OI requires Spigot internals. I highly recommend you run a Forge mod for things like this instead; OI does not have support for concepts like dynamic additional inventory slots (e.g. Baubles or whatever the modern equivalent is). These combo servers have also been notoriously unreliable because mods have a tendency to accomplish their goals in various inconsistent ways that result in missed cases for Bukkit events.
If you want to see this fixed, you can ask the Magma team to add a Commodore entry to rewrite the method to their renamed method when loading plugins.
In reply to Jikoo_K: what mod do you recommend for this? Since i need to monitor my players ender chests and inventory when they are offline incase they try to prevent me from finding out if they are cheating or not
In reply to gabbilabbi14:
Not a clue, I don't interact with the Forge side of the Minecraft scene. I had a friend who used a mod that doubled as a player NBT editor for it, but I never used it myself. It's possible that he was just using a raw NBT editor to "view" items, but he definitely appeared to be able to make live edits including obtaining items from others' inventories in a similar fashion to how OpenInv works. There's also no guarantee that the mod still exists.
/edit: Got an answer back from him, apparently there's a baked in FTB utility for it these days. The particular mod he used to use for live NBT edits died in 1.7.10, so now he uses NBTExplorer if there's something he can't access via the FTB inventory opening functionality.
I will say that if your goal is to actively monitor player inventory activity, you are much better off using a logging plugin (or, ideally, mod if such a mod exists) to search for suspicious activity. Checking inventories manually is generally not a good way to identify cheating because there's no context for how an item was obtained.
i am currently running a 1.0.0 minecraft server and when trying to add the plugin i got this log
[SEVERE] Could not load 'plugins/OpenInv.jar' in folder 'plugins':
at java.base/java.lang.Class.forName0(Native Method)
Caused by: java.lang.ClassNotFoundException: net.minecraft.server.PlayerInventory
I am completely new to servers and dont know what is happening if i could get some help that would be wonderful.
Thank you in advance
In reply to fl1mm3r:
Frankly, if you're new to servers, do yourself a favor and run a modern server. Trying to run a secure legacy server, particularly with so old and unpopular a version, is a nightmare. /e: I should clarify - 1.0.0 was not a divisive version for the community, it did not have a major reason for players to not update past it. As a result, no one maintains anything for it that I'm aware of.
Any rate, you're trying to run a server version from before CB used versioned packages. You'll need to locate the correct build from years and years ago in the files for whatever ancient CB build you're using. I'm assuming based on the error that either you downloaded the wrong file or your server's internals do not match the expected format for a CB 1.0.0 server. If you downloaded the wrong file and do not have a CB build number, it's trial and error to find the file that actually matches your server. If the issue is that you're running some third party server, you may need to build your own version of OI against it.
I do note that your stack trace indicates you're running Java 11+, so even if you do find the correct build you may still need to build your own version of OI to account for the reflection changes in Java 9. Alternately, run your ancient server on ancient Java, namely Java 8.
Waystone datapack broke when i add This Plugin.
In reply to qqq:
Please respond to the request for information in https://github.com/Jikoo/OpenInv/issues/137.
Man, I'm really sorry so many people can't read.
No bug report or stack trace here. Great plugin!
Hello! When I try to do the /openinv command, it doesn't work. /openender command does work, but the command for opening inv doesn't.
This is what the console says:
In reply to shinging__Gem:
Use 4.2.0 for 1.19 or 4.2.2 for 1.19.1/1.19.3.
In reply to Jikoo_K:
Wait so what version works for 1.19.2
In reply to TiroTear:
I believe 1.19.2 had identical mappings to either 1.19.1 or 1.19.3, so presumable also 4.2.2. If it's different it's in the same boat as 1.19.0 - Spigot did not release an internal version bump so I cannot support it easily. It would be supported with whichever version was compiled against it, except no one told me there were issues so I never made a release for it. If you're having problems on 1.19.2 you should update your server to 1.19.3.
what version of this plugin works for 1.12.2?
In reply to RealRedstoneMiner:
4.0.0, specifically the OpenInv-legacy additional file. Note that if you're using a Forge variant, you should look for a Forge mod instead. The server variants that claim to support Bukkit plugins using Minecraft internals are notoriously unreliable.
java.lang.InstantiationException: Unable to create a new SpecialPlayerInventory [17:28:56 WARN]: at OpenInv.jar//com.lishid.openinv.InternalAccessor.createSpecialInventory(InternalAccessor.java:122) [17:28:56 WARN]: at OpenInv.jar//com.lishid.openinv.InternalAccessor.newSpecialPlayerInventory(InternalAccessor.java:194) [17:28:56 WARN]: at OpenInv.jar//com.lishid.openinv.OpenInv.getSpecialInventory(OpenInv.java:261) [17:28:56 WARN]: at OpenInv.jar//com.lishid.openinv.commands.OpenInvCommand.openInventory(OpenInvCommand.java:194) [17:28:56 WARN]: at OpenInv.jar//com.lishid.openinv.commands.OpenInvCommand$1$1.run(OpenInvCommand.java:93) [17:28:56 WARN]: at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) [17:28:56 WARN]: at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) [17:28:56 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1490) [17:28:56 WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446) [17:28:56 WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1414) [17:28:56 WARN]: at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1187) [17:28:56 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302) [17:28:56 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
1.19 Paper server and OpenInv 4.2.1 i download and instal it. Can someone help me?
In reply to hestiasan:
4.2.1 is for 1.19.1, not 1.19. Use 4.2.0.
Because you are now the second person to have this issue, the text in the changelog is now large and red.
I have this error occuring when using "/openinv [player]", pls help: