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
funny glitch ..... shift right clicking items into another persons inv makes them PUT THE ITEMS ON LOL
K, going to work in fixing it.
@lishid
As per Comment #34, I get the same error.
when I want to get to BobJoe's inventory, and I accidentally go /openinv bobjoe, it will not find then I do a facedesk moment and remember offline players are case-sensitive, so I go /openinv BobJoe and it STILL won't find it until I reload the server, due to his first non case-sensitive problem
Posted a ticket regarding /sc alias and conflict with bettershop.
or maybe /oi? I can't think of anything else using that.
@lishid
Yes that i wanted to say, because it then is still kind of reasonable t use inv for your plugin. But for people that dont like to type /i /u /o you would see /inv as the next shortest abbreviation for inventory, which need not only be for adding items.
It's ok, though having it configurable if to use inv or oinv would be nice, but certainly far from urgent.
@asofold
/i is for giving items on most servers (the /give command)
Actually the /inv shortcut is a bit peculiar, because it often is used by otehr iventory manipulation plugins, yet /i is most common i suppose.
Not urgent for me, but maybe considerable.
@deleted_7554077
Oh, I'll change the alias in the next version then.
How to give priority to worldedit?
Seems you have added a alias /search
Everytime I want to look up a name thru worldedit which is /search item too
So please how to give priority to worldedit
UPDATE! Got it, I deleted the search alias in the plugin.yml :D works now :D thanks :D
@lishid
Thanks :D
@MariuszT
1.7.2 out for a fix.
I've got this error when try open chest in silent mode (plugin version 1.7.1):
EDIT
OMG lishid, it's you again hahaha :D
@DarkMinecrafter
Your target has the permission "OpenInv.exempt" to have a protected inventory Make sure you got the "OpenInv.override" permission to override the protection it if you're the admin.
when i make /openinv eike than he say eike's inventroy is protected
@ikkyino
First case is true. Offline inv is case sensitive. Second part shouldn't. If you do case sensitive then it should work.
I can't view a players inventory that is offline if i don't do it case sensitive the first time around. IE a player is name Joe_bob and i do /openinv joe_bob it'll say player not found.. So i do the case sensitive afterwards... Joe_bob and it still does player not found, and it continues to do that until i restart server.
@violation84
Openinv doesn't deal with items. If openinv had a problem, it will likely delete entire chests or inventories. You probably have another plugin interfering.
I just updated to the latest openinv and now all the enchanted items being put in chests are bugging out... please check this quickly!
@lishid
Yup, that it does! Thanks!