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
@lishid
java.lang.ClassNotFoundException net.minecraft.server.v1_4_5.IInventory
For those running CraftBukkit 1.4.5-R0.3
get this:
@janie177
[external link removed]
Not working on the latest bukkit builds: http://pastebin.com/Tt92j0Nf
@lishid Yeah the nullpointer thing is another error after it not OpenInv i think.
@lishid
That is the whole log relating to OpenInv... I am using Crafrbukkit 1.2.5R4.1 (Tekkit) with OpenInv 1.8.5
@bocaj1234567
Is that all the log from the error?
If so, then there's a problem with your CraftBukkit (try updating it).
If not, please pastebin the entire error log.
Thanks
I got this error: Any ideas? The error happened when I was looking at the console; not when I did any commands: 06.12 11:37:30 [Server] INFO Caused by: java.lang.NullPointerException 06.12 11:37:30 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 06.12 11:37:30 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467) 06.12 11:37:30 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:579) 06.12 11:37:30 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83) 06.12 11:37:30 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:119) 06.12 11:37:30 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:234) 06.12 11:37:30 [Server] INFO at net.minecraft.server.Packet15Place.handle(SourceFile:39) 06.12 11:37:30 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:647) 06.12 11:37:30 [Server] INFO at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:302) 06.12 11:37:30 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) 06.12 11:37:30 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467) 06.12 11:37:30 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482) 06.12 11:37:30 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 06.12 11:37:30 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) 06.12 11:37:30 [Server] INFO org.bukkit.event.EventException 06.12 11:37:30 [Server] SEVERE Could not pass event PlayerInteractEvent to OpenInv 06.12 11:36:56 [Server] INFO [PLAYER_COMMAND] piplup913: /f home
@coolo1
Yes.
Does this include armour?
@1cec0ld
I'm aware of the command, but I was referring to interacting with the block by right-clicking. Yes, you only see your EnderChest inventory, but the chest itself will open and make that creeky noise.
It's only a trivial cosmetic idea. I just thought I'd throw the suggestion in the open.
Thanks a lot Gamecube762 and Tux2. :) Tux2: I love your work. :)
@BlueJayofEvil
/openender (yourName) is part of the Openinv arsenal.
I assume you want to open your own Ender Inventory, since that's the only inventory you can see when you physically interact with the Block.
Would it be possible to silently open EnderChests as well?
It's not a big issue, but if being used with VanishNoPacket, opening an EnderChest can alert others to someone being there.
Just thought I'd suggest it.
@deleted_8435363
As the author of MultiInv and a user of OpenInv, I can say positively yes, although OpenInv currently only shows you your current inventory, I do have an API that OpenInv can hook into to show you your other world inventories if lishid decides to implement it.
@deleted_8435363
I've used MultiWorld, MultiInv, OpenInv. and they all work perfectly with no problems. OpenInv will show you the current inventory that the player is using. So if the player is in Survival, it will show his survival inventory and not his Creative inventory
@lishid
Can you do a feature request to the CraftBukkit API with your code?
@FireZtreaM
CB did not have the option for 1.4.4 to choose yet back when I uploaded the file.. So I had to choose 1.2.4, but indicate in the description that it was for 1.4.4.
hey, just wondering; does OpenInv play friendly with MutliInv?
Hmm, i'm confused!
•R: OpenInv 1.9.0 for CB 1.4.4 for CB 1.4.2-R0.2 2 days ago
So which is it? Is it for 1.4.2 or 1.4.4? If i read the changelog i would guess it's for 1.4.4, but then, where is the release for 1.4.2?
I guess i need the release for 1.4.2 since you clearly state: DO NOT USE for CB 1.4.2 or less and there is no beta or recommended build of craftbukkit 1.4.4. Only dev builds, which i preferably don't want to use.
@krisdestruction
This plugin needs to integrate into core CraftBukkit components that might break whenever minecraft updates. I'm sure Essentials wouldn't want that. (Essentials use mostly the bukkit API instead of core CraftBukkit components)