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
@user_587959
Are you using MC1.5? If so you must use a specific version of OpenInv that's only compatible with 1.5. the rest only supports 1.5.1
I installed the updated version and it still shows as red in the plugin list... did I miss a step?
New update: For those who uses the latest versions of CraftBukkit, this fixes the crash when loading offline players.
Download is on bukkit forum post until file is approved on BukkitDev: http://forums.bukkit.org/threads/15379
@lishid Can you get me the link of dev build?(PM)
Thanks for keeping this updated, lish :)
@lishid
Thanks, will do! (note: you're not allowed to link to external / off-site / unapproved files :-/)
edit: Works! :-)
@ThisUsernameIsMine
Could you try this dev version to see if it fixes the issue?
OpenInv 2.0.0 is giving me internal errors (in-game) and unhandled exceptions (console) when trying to view an offline player's inventory:
- http://dev.bukkit.org/paste/7424/
Im running the latest CB 1.5.1 dev-build.
@stephano013
Restart, don't reload. Also, check if your version corresponds to the version of OpenInv. If you're using MC1.5 then there's only one version that works, and is not the latest version.
@Adondriel
I will check that out.
Help! When I downloaded this and put it into my plugins folder and did /reload, then I do /plugins, and OpenInv is in red! Help!
When you open an inventory with /openinv or /openender, any item with lore on it will have lore removed.
EX:
item name:&6Vote Point
Item lore line1: Spend at: /warp voteshop
/openender (player)
item name: still there
Item lore: gone.
@lishid
Sorry for wasting your time, it turns out that was all I needed. I was running the latest build for craftbukkit, 1.5.1 R.01 I believe, but I just updated to the latest build and OpenINV works perfectly fine.
(Working on: craftbukkit-1.5.1-R0.1-20130324.180708-17!)
@ParadoxGods
Strange... What's the version of CB you're using?
For some reason, I type /openinv but nothing happens. Not even an error, just nothing. I tried to stop the server, and start it, I then removed it, downloaded it again, and still nothing. Help, please?
@lishid
Thanks, now I understand. I was missing some vital console output, it turned out that I needed v1.9.8, which now works perfectly.
@adventuretc
onDisable disables the plugin automatically. It's there for any cleanup that has to be done. In my case, there's no cleanup that needs done.
From Spain, thank you very much!!!
With this plugin I can control server cheats.
Byee
You should disable the plugin in onDisable because this way it can't be updated with pluginmanager or similar. I don't want to stop the server and now I can't use any commands, they just return nothing. I find it really strange that some plugins don't have onDisable actions.
New update, OpenInv 2.0.0:
Fixed trapped chest problem
Download is on the forum until file is approved on bukkitdev http://forums.bukkit.org/threads/15379
@TOOTHPlCK1
Yes, I'm looking into Minecraft's code change from 1.4.x to 1.5