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
@Mike724
EDIT: I misunderstood... It's not possible yet to disable editing, though I'm thinking of implementing it soon.
How about a permission disallowing editing of a player inventory?
@bobeeb
Gonna work on that.
@cman85
Did you update to 1.8.6?
Doesn't work for me. Happens whenever I /openinv.
2012-08-06 23:52:50 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'openinv' in plugin OpenInv v1.8.4 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:490) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:878) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:825) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.NetworkManager.b(NetworkManager.java:281) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.AbstractMethodError at net.minecraft.server.ContainerChest.<init>(ContainerChest.java:38) at net.minecraft.server.EntityPlayer.openContainer(EntityPlayer.java:505) at lishid.openinv.commands.OpenInvPluginCommand.onCommand(OpenInvPluginCommand.java:183) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 15 more
is it possible to look in users enderchest? because some users (xrayer) hide their stuff in it
@Eggerd
@XeonG8
It also works for me :)
its broken for me on same build 2269.. eggerd
nvm... didn't see updated 1.3.1 build... will try that
OpenInv 1.8.5 works with 1.3.1 Dev Build #2269.. at least for me ;-)
@lishid
where is the download link to the 1.3.1 version?
Updated to 1.3.1.
New version 1.8.6 ONLY supports 1.3.1. Please do NOT use for 1.2.5.
@Curtis4321
Working on it.
This plugin is broke with 1.3.1 bukkit dev
@aphilosopher
You can take a look at http:www.minecraftforum.net/topic/787332-mclooter-list-all-chests-in-a-world/.
@aphilosopher
You might want something like logblock or hawkeye that logs when people put stuff in chests then you can query later.
1.8.5 is out, this is a critical fix for most Offline OpenInv related bugs.
@aphilosopher
SearchInv for offline players would require the server to load EVERY player's offline data... which could be a pain in the ass for your server because it might be alot of data (lag maybe??)
Searching chests is also an issue because... you want to search every chest in your minecraft world?! would that not require your server to load EVERY chunk, look through EVERY chest, taking a long long time, which means every player online will be disconnected and your server might get shut down...
i sure wish this would support two things,
/searchinv 57 *offline players*
and a new feature /searchchest 57
i would love to track down all the duped diamond blocks in my survival server, but i need a method to look inside all chests and all inventories in the entire map, or just to search them all for items like diamondblocks,
so far no method exists
@ryvix
it works with multiverse inventories but not well, it often bugs out others inventories or dups them.
Does this not work with Multiverse? Because I am having troubles getting it to work with it properly. But then again, maybe that is the fault of Multiverse Inventories and not this.
@fjutte
Thank you.