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
Since a short period my openinv stoped working. if you type the command /openinv < player> Its opening it with a flash than closing it again. /openinv only works once after that no more. Weirest part, No errors or anything.
@bocaj1234567
there has been enough changes... Tekkit is still on 1.2.5?? wow..
@lishid
I'm sorry I'm running Tekkit... do you think that the later versions of the plugin will work with 1.2.5R4.1... in other words, have their been Bukkit API changes since then?
@bocaj1234567
First of all, I'm no longer supporting older version of my plugin.... There might have problems already fixed in newer versions. Also, 1.8.5 was marked for CB 1.2.5-R4.0 not R4.1. Try going to RB 4.0 instead.
@lishid Running CraftBukkit 1.2.5R4.1 Openinv 1.8.5 OK lishid there was an other error i copied the whole thing: 11.12 12:12:28 [Server] INFO Caused by: java.lang.NullPointerException 11.12 12:12:28 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 11.12 12:12:28 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467) 11.12 12:12:28 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:579) 11.12 12:12:28 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83) 11.12 12:12:28 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:119) 11.12 12:12:28 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:234) 11.12 12:12:28 [Server] INFO at net.minecraft.server.Packet15Place.handle(SourceFile:39) 11.12 12:12:28 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:647) 11.12 12:12:28 [Server] INFO at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:302) 11.12 12:12:28 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) 11.12 12:12:28 [Server] INFO org.bukkit.event.EventException 11.12 12:12:28 [Server] SEVERE Could not pass event PlayerInteractEvent to OpenInv 11.12 12:12:28 [Server] INFO Caused by: java.lang.NullPointerException 11.12 12:12:28 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 11.12 12:12:28 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467) 11.12 12:12:28 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:579) 11.12 12:12:28 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83) 11.12 12:12:28 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:119) 11.12 12:12:28 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:234) 11.12 12:12:28 [Server] INFO at net.minecraft.server.Packet15Place.handle(SourceFile:39) 11.12 12:12:28 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:647) 11.12 12:12:28 [Server] INFO at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:302) 11.12 12:12:28 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) 11.12 12:12:28 [Server] INFO org.bukkit.event.EventException 11.12 12:12:28 [Server] SEVERE Could not pass event PlayerInteractEvent to OpenInv 11.12 12:12:28 [Multicraft] Skipped 25 lines due to rate limit (60/s) 11.12 12:12:28 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:647) 11.12 12:12:28 [Server] INFO at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:302) 11.12 12:12:28 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 11.12 12:12:28 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) 11.12 12:12:28 [Server] INFO org.bukkit.event.EventException 11.12 12:12:28 [Server] SEVERE Could not pass event PlayerInteractEvent to OpenInv 11.12 12:12:27 [Server] INFO Caused by: java.lang.NullPointerException 11.12 12:12:27 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 11.12 12:12:27 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467) 11.12 12:12:27 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:579) 11.12 12:12:27 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83) 11.12 12:12:27 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:119) 11.12 12:12:27 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:234) 11.12 12:12:27 [Server] INFO at net.minecraft.server.Packet15Place.handle(SourceFile:39) 11.12 12:12:27 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:647) 11.12 12:12:27 [Server] INFO at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:302) 11.12 12:12:27 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) 11.12 12:12:27 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467) 11.12 12:12:27 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482) 11.12 12:12:27 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 11.12 12:12:27 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) 11.12 12:12:27 [Server] INFO org.bukkit.event.EventException 11.12 12:12:27 [Server] SEVERE Could not pass event PlayerInteractEvent to OpenInv 11.12 12:12:27 [Server] INFO Caused by: java.lang.NullPointerException 11.12 12:12:27 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 11.12 12:12:27 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467) 11.12 12:12:27 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:579) 11.12 12:12:27 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83) 11.12 12:12:27 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:119) 11.12 12:12:27 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:234) 11.12 12:12:27 [Server] INFO at net.minecraft.server.Packet15Place.handle(SourceFile:39) 11.12 12:12:27 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:647) 11.12 12:12:27 [Server] INFO at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:302) 11.12 12:12:27 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) 11.12 12:12:27 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467) 11.12 12:12:27 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482) 11.12 12:12:27 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 11.12 12:12:27 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) 11.12 12:12:27 [Server] INFO org.bukkit.event.EventException 11.12 12:12:27 [Server] SEVERE Could not pass event PlayerInteractEvent to OpenInv
@lishid
both /oi and /openinv
@gabe77b
It only does that if you do "/oi ?"
my plugin was working now when i type /oi player it brings me to the help menu of openinv
@lishid
Hmm the link was removed, but I wasn't going to update anyways since alot of other plugins have been broken too.
@xMinecraft
Can you read the comment i just posted?
@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.