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
Can an administrator with OpenInv bypass Curse Of Biding and take my armor for example?
In reply to WreckItFelix:
Yes. OpenInv doesn't apply slot restrictions, so you can place and remove whatever wherever. Put dirt on your feet, take off curse of binding gear, anything.
how can i change the permissions i run an aternos server and i am kinda new to all the minecraft server stuff
In reply to skondras_l:
Sorry, I don't know what Aternos is - I haven't actually played Minecraft for any reason other than testing in the past few years. Note that OpenInv is only for Bukkit servers, so if Aternos is some kind of Forge or other server variant it won't work. Assuming it is a Bukkit-compatible server, I recommend installing LuckPerms for your permissions plugin.
You don't necessarily need a permissions plugin to use OpenInv, but you will have to be an op if you don't install one.
In reply to skondras_l:
You might have better luck looking up aternos tutorials. They have a lot of good videos, Im sure you'll find one about permissions and stuff.
~Milk
Unfortunately not working on 1.16.5 anymore :( The other plugins doesn't allow me to see the inventory of offline players... I wish it was updated one day
In reply to Blutrecht:
OpenInv is already functional on 1.16.5 - it was a minor update from 1.16.4, and did not affect anything OpenInv uses. If you are encountering issues accessing offline players' inventories, make sure you have your permissions set up properly. Specifically, you may have denied yourself
OpenInv.openoffline
by accident.In reply to Jikoo_K:
Okay, it works now :) Thank you very much! Great plugin by the way!
Seems to be causing an error on 1.16.5 where it will occasionally wipe people's ender chests or swap them with other players. Was not able to find an error log but when I removed the plugin this issue stopped
In reply to CosmicSocietySonic:
Unfortunately, can't help you with so few details. I haven't heard of anything like that happening in years, so if you could get back to me with your server version (not just 1.16.5, actual implementation and build number or commit hash) and OpenInv version, that would be great.
In reply to Jikoo_K:
Can do, was using v4.1.5, paper build would've been 1.16.5 #466 and below. It seemed to happen at random, or maybe when opening the enderchest between worlds, I have no idea honestly. There was never any errors and I would just get reports of enderchests being wiped/swapped between world inventories. It was true too, it would happen. Once I removed OpenInv it all stopped, but I would love to use the plugin again.
In reply to CosmicSocietySonic:
Sounds like an incompatibility with another plugin unfortunately. I'll double check the 1.16.5 diff, but I did re-check everything with the last revision change. OpenInv doesn't have a concept of per-world inventories because Minecraft doesn't have a concept of that. Ideally your per-world inventory system should offer its own inventory/ender chest editor.
is there any way that you can see their armor slots or off hand?
In reply to sandpog:
From the description: "Some other nice features of the plugin include the ability to access the armor slots of player inventories"
In reply to sandpog:
the armor slots and offhand are on the bottom layer of their inventory.
helmet chestplate leggings boots offhand drop drop drop drop
Why can't I edit any inventories? I can open them but can't edit them.
In reply to sarcasmkekw:
The plugin works fine without other plugins installed, which means its permissions are working as intended with the presets provided for Bukkit's inbuilt SuperPerms system. Unfortunately, due to the number of variables involved, it's extremely difficult diagnose your permissions problem. Your best bet is to use a system such as LuckPerm's verbose mode that tells you real-time what permissions are being checked for whom and how they evaluate. If you can provide enough information to indicate an actual issue I will be happy to look into it, but until such a time the sheer number of things that could be wrong make it impossible to help you.
Tl;dr: You have likely misconfigured your permissions.
The ability to edit aliases without editing the plugin would be nice. /ac conflicts with my admin chat :(
Nice plugin otherwise!
In reply to SushiKarasumori:
You can use Bukkit's commands.yml feature to resolve command conflicts.
can you please update to 1.16.4