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
In reply to RothesCN:
In reply to Jikoo_K:
ok I have checked.
One of the plugins is NeverLag and ProtocolLib.
Use silent mode and open a chest,and you cannot break that chest again
Download Link(maybe the link that I give just now not work?I use another one):
https://drive.google.com/file/d/1LRQBpgLYqmFqon_ZZXAkjMYRIQ1oixx-/view?usp=sharing
In reply to RothesCN:
In reply to Jikoo_K
yes.That is
maybe It's beause of paperspigot
sorry.
Thank you for the update! It seems to be working so far.
[16:45:19 ERROR]: Could not pass event PlayerInteractEvent to OpenInv v3.3.6
java.lang.NoSuchMethodError: net.minecraft.server.v1_13_R2.VoxelShape.a()Lnet/minecraft/server/v1_13_R2/AxisAlignedBB;
at com.lishid.openinv.internal.v1_13_R2.AnySilentContainer.isBlockedShulkerBox(AnySilentContainer.java:134) ~[?:?]
at com.lishid.openinv.internal.v1_13_R2.AnySilentContainer.isAnyContainerNeeded(AnySilentContainer.java:86) ~[?:?]
at com.lishid.openinv.listeners.PlayerListener.onPlayerInteract(PlayerListener.java:66) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor725.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70) ~[patched_1.13.2.jar:git-Paper-498]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.13.2.jar:git-Paper-498]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.13.2.jar:git-Paper-498]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513) ~[patched_1.13.2.jar:git-Paper-498]
at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:315) ~[patched_1.13.2.jar:git-Paper-498]
at net.minecraft.server.v1_13_R2.PlayerInteractManager.a(PlayerInteractManager.java:474) ~[patched_1.13.2.jar:git-Paper-498]
at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1355) ~[patched_1.13.2.jar:git-Paper-498]
at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[patched_1.13.2.jar:git-Paper-498]
at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:5) ~[patched_1.13.2.jar:git-Paper-498]
at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:13) ~[patched_1.13.2.jar:git-Paper-498]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_191]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_191]
at net.minecraft.server.v1_13_R2.SystemUtils.a(SystemUtils.java:108) ~[patched_1.13.2.jar:git-Paper-498]
at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1011) ~[patched_1.13.2.jar:git-Paper-498]
at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-498]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:938) ~[patched_1.13.2.jar:git-Paper-498]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:836) ~[patched_1.13.2.jar:git-Paper-498]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
1.13.2 paper-497 Error log:
[20:24:11 ERROR]: Could not pass event PlayerInteractEvent to OpenInv v3.3.6 java.lang.NoSuchMethodError:
..........
In reply to shuiqing2046:
In reply to Jikoo_K:
In reply to Jikoo_K:
Openinv throws a lot of these errors with latest version of Spigot now: https://pastebin.com/USA2HJiN
Spigot-19c3c5a-5932f8a (MC: 1.13.2)
In reply to SurvivalQuestMC:
In reply to Jikoo_K:
In reply to SurvivalQuestMC:
Getting this error using the latest version of spigot... https://pastebin.com/iaY7n8yA
[19:05:34] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to OpenInv v3.3.6[19:05:34] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to OpenInv v3.3.6java.lang.NoSuchMethodError: net.minecraft.server.v1_13_R2.VoxelShape.a()Lnet/minecraft/server/v1_13_R2/AxisAlignedBB; at com.lishid.openinv.internal.v1_13_R2.AnySilentContainer.isBlockedShulkerBox(AnySilentContainer.java:134) ~[?:?] at com.lishid.openinv.internal.v1_13_R2.AnySilentContainer.isAnyContainerNeeded(AnySilentContainer.java:86) ~[?:?] at com.lishid.openinv.listeners.PlayerListener.onPlayerInteract(PlayerListener.java:66) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor14.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70) ~[patched_1.13.2.jar:git-Paper-492] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.13.2.jar:git-Paper-492] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.13.2.jar:git-Paper-492] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513) ~[patched_1.13.2.jar:git-Paper-492] at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:315) ~[patched_1.13.2.jar:git-Paper-492] at net.minecraft.server.v1_13_R2.PlayerInteractManager.a(PlayerInteractManager.java:465) ~[patched_1.13.2.jar:git-Paper-492] at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1352) ~[patched_1.13.2.jar:git-Paper-492] at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[patched_1.13.2.jar:git-Paper-492] at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:5) ~[patched_1.13.2.jar:git-Paper-492] at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:13) ~[patched_1.13.2.jar:git-Paper-492] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_181] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_181] at net.minecraft.server.v1_13_R2.SystemUtils.a(SystemUtils.java:108) ~[patched_1.13.2.jar:git-Paper-492] at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1010) ~[patched_1.13.2.jar:git-Paper-492] at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-492] at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:937) ~[patched_1.13.2.jar:git-Paper-492] at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:835) ~[patched_1.13.2.jar:git-Paper-492] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
Hello guys. I am using another plugin that seems to have an incompatibility with your plugin. Its is called QuestCreator (https://www.spigotmc.org/resources/quest-creator-◆-powerful-and-advanced-quests-multiple-paths-in-game-editor.38734/). There plugin works fine until I put your plugin on the server then there GUI closes instantly when a certain button is pushed. Your plugins works fine. The developer of the plugin took a look at your source code and said to take a look at this area:
I would really love to be able to use both plugins.. Is this something that can be fixed? My server is running 1.13.2.
Beloc
In reply to xXBelocXx87777:
In reply to Jikoo_K: