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
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!
@thefowles1
@BetaStream
New version should fix it.
@BetaStream
I get the same errors. I opened a ticket.
@lishid
When silently open a chest and try to get something from it it kicks me and shows: Internal server error!
Error log (using latest dev-build of bukkit):
@lishid
awesome! :D
New Feature!
/silentchest opens chests in total silence
-Openinv version 1.6.4
@WMisiedjan
Yes, I found yours after I got my idea, the only issue you had was that you had to be close enough to the player.
Thanks for your code :D
I kinda invented this, I was rolling around in the bukkit API and main code and found this method you're justing a while ago but it's outdated and has the old distance bug. my plugin was called iSee.
Anyway, Great job!
This is pretty sweet to have for real-time use as an admin. Thank you for keeping it up. :)
This is an awesome plugin. keep it up :P
@Mike724
Yeah, compatibility with MultiInv is kinda hard. When you openinv an offline player, it opens whatever is saved on the player's file, not the multiInv files.
@DarkMinecrafter
This already is part of OpenInv and works.
@jacobems
Yeah but server admins don't usually get file access to the server. This plugin makes it so much easier, editing other inventories on-the-fly, checking for liars and giving someone something with a command.
:3 You can do this with INVedit. i think you have to restart the server for it to apply but...it can be done without this plugin. Just open the players .dat file in the players folder in your world.
Can you add that i can access to a inventory from a player who is offline ?