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
That is good as it is, i will allow bypasses for the cancelling...
@asofold
OpenInv's chest implementations are made in a way so that you don't bypass chest protection plugins, a great concern among many people since when I first implemented AnyChest.
The only way of bypassing the cancelled events is to make your other plugins not cancel them.
@lishid
Is there an option to have SilentChest ignore cancelled state of events ?
Maybe i malconfigured it... i have a case where i want to cancel all interaction but where it might be good to still peek into chests *silently*. Currently it seems not to work.
@1cec0ld
Glad to help.
@vman411gamer
Yes, it works with 1.2.5.
And I also thank lishid for making it, especially the offline functionality, makes it so much easier to give/take items and fix mistakes when online time is an issue!
@vman411gamer
yes
Does it work with 1.2.5-R1.0?
@Malgn
yeah, I'd be making a whole SQL interface (which is a freaking pain to do), and hooking into other plugin's stuff, having to keep it compatible with people who doesn't have that plugin, etc, etc. The other plugin can just make it compatible with minecraft default data management, which will then be available every plugin that interfaces with minecraft default.
@lishid
To make it compatible couldn`t you just make it go in the sql database and edit the files???
@Spezialeinheit
You should ask the other plugin to make it compatible with this plugin. Openinv taps into the game's data, and it would be messy to add a bunch of code that taps into another plugin. The other plugin however can simply save its data back to the game, resulting in clean and safe environment.
Can you make compatible with InventorySQL? Link: http://dev.bukkit.org/server-mods/inventorysql/
I use that on my Server and can't open Inventory when player is offline.
Thanks lishid :)
@zonedabone
No idea about that, but i think the plugin doesn't actually need to use the API.
Are you going to move this to the new Inventory API soon?
Great plugin! Works with craftbukkit-1.2.5-R1.0 / Openinv 1.8.4
Thank You for this plugin!! Much Appreciated!!
Amazing plugin! Props to you lishid. Love the fact I can open up offline player's inventories. Only me and two of my mods know about this, so taking items from others is super easy, especially those in creative with the stacks upon stacks of diamond blocks. ಠ_ಠ
@deleted_8127146
I'm not using plugin.yml for my permissions nodes. If your super-perms plugin doesnt support the wildcard '*, consider other alternatives. Meanwhile, I'll have a look to see if I can make it support wildcards.
Hello
The OpenInv.* node is not workking :( Something bad in plugin.yml I think, nothing really hard ;-)
Regards, Xéfir Destiny
using this with the latest dev build of craftbukkit (craftbukkit-1.2.3-R0.3-20120314.053735-4) and it's working! love it :D