OpenInv

Open anyone's inventory as a chest! in real time! Works with offline players! Open EnderChests of any player via command!

Source Code hosted on GitHub

Description

  • Open a player's inventory as a chest and interact with it in real time.
  • Access to the inventory and armor slots.
  • Open any chest that has blocks on top (blocked chests) with AnyChest.
  • Open a chest silently (without chest animation nor sound) with SilentChest.
  • Open any player's EnderChest from a command.
  • Drop item as another player (by putting it in the 5 unused slots in openinv)!

How to install

  • Copy to your plugins folder, and restart/reload your server.

Use

  • Use command "/openinv <player>" to open a player's inventory
  • Use command "/toggleopeninv" to toggle Item openinv:
  • * Hit a player with an item of your choice (STICK by default), and you will open the player's inventory (no damage)
  • * Right click the air with the item opens the last opened inventory (toggle must be ON)[/CODE]
  • Use command "/anychest" to toggle anychest (blocked chest bypass)
  • Use command "/silentchest" to toggle silent chest
  • Use command "/openender <Player>" to open a player's enderchest
  • Use command "/searchinv <Item> [MinimalAmount]" list all players having a certain item in their inventory.
  • To use a sign for quick access (this uses the normal Openinv.openinv permissions, override and exempt applies), You need: "[openinv]" (without quotes) on the 1st line and the player's name on the other lines.

Permissions nodes (CaSe SeNsItIvE)

  • "OpenInv.openinv" gives permission to use OpenInv
  • "OpenInv.openself" Allows opening the inventory of the command user
  • "OpenInv.editinv" - Allows editing of inventory
  • "OpenInv.openender" - Allows opening of EnderChests
  • "OpenInv.openenderall" - Allows opening of EnderChests of everybody. Without this permission, someone can only open his own enderchest.
  • "OpenInv.editender" - Allows editing of enderchest
  • "OpenInv.search" gives permission to use searchinv
  • "OpenInv.crossworld" allows cross-world 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.silent" gives permission to open chests in total silence, without animation.
  • (without quotes)

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 contents as they wish, in real time.
  • Access it anywhere! No distance or obstacle limitations.
  • Permissions support.
  • Use the command without argument opens the last accessed person's inventory.
  • Use sticks or any (configurable) item and toggles for quick access.
  • Search all online players for a certain item in their inventory.
  • Protect players from openinv with exempt permission, and bypass protection with override permission.
  • Use a sign to perform openinv for convenience.
  • Cross-world openinv protection.
  • Offline player openinv supported.
  • Open chests that are blocked because they have a solid block on top. (AnyChest)
  • Silent opening of chest, no sound and opening animation.
  • EnderChests can be opened, even for offline players!
  • NEW: Drop item as another player (by putting it in the 5 unused slots in openinv)
  • Self-opening protection.

Auto-Updater

This plugin uses an Auto-updater to fetch the latest version from BukkitDev automatically. It can be disabled in the configuration file.

More info on the forum: http://forums.bukkit.org/threads/15379

Support the developer: Donate!

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of CloudeLecaw CloudeLecaw Aug 29, 2014 at 05:11 UTC - 0 likes

    <<reply 2325567>>

    Sometimes when i edit the enderchest of an offline player it delets the whole enederchest.
    i saw that this only effects a few of my player, and there is no errormessage inside the console.

    Maybe it has something to do with the name?
    Example:
    /openender hanswurscht27 -> his enderchest get cleard after a few used.
    /openender Joshdie -> no problems, his enderchest allways stors everything correct.

    im uning Dev Bukkit 1.10.R0.1 -16
    and OpenInv 2.2.2

  • Avatar of smcerm smcerm Aug 26, 2014 at 18:48 UTC - 0 likes

    @Dyllaann: Go

    OpenInv.silent

    @Phoenix616: Go

    That bug has been identified and fixed in the code. Just wait for the next update, and you'll be able to access offline inventories again.

    BFAK:90673858,928e684d977d69139d8b50fc7e1ee8bb2e9eb857083fb9c855db27ebc8c1d9e8

  • Avatar of chrisbruijnes chrisbruijnes Aug 26, 2014 at 11:53 UTC - 0 likes

    Offline support works but it makes a lagg spike when you search for a offline person. Any fix for this?

  • Avatar of Phoenix616 Phoenix616 Aug 25, 2014 at 22:49 UTC - 0 likes

    Version 2.2.2's Changelog says "Finally fixed offline inventory" but if I try to access the inventory of a player which is offline it just says "Player X not found".

    Did that change perhaps not refered to the inventory of offline players but to the inventory of players in offline mode?

    Moep.tv - because why not?

  • Avatar of Dyllaann Dyllaann Aug 25, 2014 at 12:08 UTC - 0 likes

    What is the permission of /silentchest ?

    Yeah, Its cool right..

  • Avatar of smcerm smcerm Aug 21, 2014 at 15:45 UTC - 1 like

    @overyde: Go

    That bug has been identified and fixed in the code. Just wait for the next update, and you'll be able to access offline inventories again.

  • Avatar of overyde overyde Aug 21, 2014 at 15:00 UTC - 0 likes

    I cant access offline players inventory. Im using 1.7.10. The error i get when accessing offline players inventory is the following:

    [15:56:44 ERROR]: [OpenInv] java.lang.NullPointerException [15:56:44 WARN]: java.lang.NullPointerException [15:56:44 WARN]: at com.lishid.openinv.internal.v1_7_R3.PlayerDataManager .matchUser(PlayerDataManager.java:84) [15:56:44 WARN]: at com.lishid.openinv.internal.v1_7_R3.PlayerDataManager .loadPlayer(PlayerDataManager.java:38) [15:56:44 WARN]: at com.lishid.openinv.commands.OpenInvPluginCommand.onCo mmand(OpenInvPluginCommand.java:84) [15:56:44 WARN]: at org.bukkit.command.PluginCommand.execute(PluginComman d.java:44) [15:56:44 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo mmandMap.java:180) [15:56:44 WARN]: at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCo mmand(CraftServer.java:716) [15:56:44 WARN]: at net.minecraft.network.NetHandlerPlayServer.func_14736 1_d(NetHandlerPlayServer.java:1347) [15:56:44 WARN]: at net.minecraft.network.NetHandlerPlayServer.func_14735 4_a(NetHandlerPlayServer.java:1129) [15:56:44 WARN]: at net.minecraft.network.play.client.C01PacketChatMessag e.func_148833_a(C01PacketChatMessage.java:38) [15:56:44 WARN]: at net.minecraft.network.play.client.C01PacketChatMessag e.func_148833_a(C01PacketChatMessage.java:53) [15:56:44 WARN]: at net.minecraft.network.NetworkManager.func_74428_b(Net workManager.java:244) [15:56:44 WARN]: at net.minecraft.network.NetworkSystem.func_151269_c(Net workSystem.java:173) [15:56:44 WARN]: at net.minecraft.server.MinecraftServer.func_71190_q(Min ecraftServer.java:976) [15:56:44 WARN]: at net.minecraft.server.dedicated.DedicatedServer.func_7 1190_q(DedicatedServer.java:419) [15:56:44 WARN]: at net.minecraft.server.MinecraftServer.func_71217_p(Min ecraftServer.java:806) [15:56:44 WARN]: at net.minecraft.server.MinecraftServer.run(MinecraftSer ver.java:666) [15:56:44 WARN]: at java.lang.Thread.run(Unknown Source)

  • Avatar of Kepler_ Kepler_ Aug 18, 2014 at 18:16 UTC - 0 likes

    BFAK:90689588,bf4539cfba946e2288953216c8296d5cbdf6d61d465cfd43d5ea05ba3c8eb3f4

  • Avatar of MinecraftAdmin MinecraftAdmin Aug 17, 2014 at 18:48 UTC - 0 likes

    Getting spammed by this on Spigot 1.7.10

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    2014-08-17 14:21:58 | [ERROR] Could not pass event CraftItemEvent to OpenInv v2.2.2
    2014-08-17 14:23:21 | [???] org.bukkit.event.EventException
    2014-08-17 14:23:21 | [???] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:299) ~[spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:21 | [???] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:22 | [???] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:22 | [???] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:22 | [???] at me.bw.fastcraft.InventoryManager.onInventoryClick(InventoryManager.java:194) [FastCraft.jar:?]
    2014-08-17 14:23:22 | [???] at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source) ~[?:?]
    2014-08-17 14:23:22 | [???] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_51]
    2014-08-17 14:23:22 | [???] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_51]
    2014-08-17 14:23:22 | [???] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:22 | [???] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:22 | [???] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:22 | [???] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:22 | [???] at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1431) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:22 | [???] at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.a(SourceFile:32) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:23 | [???] at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.handle(SourceFile:10) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:23 | [???] at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:184) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:23 | [???] at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:23 | [???] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:731) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:23 | [???] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:23 | [???] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:23 | [???] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:23 | [???] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:23 | [???] Caused by: java.lang.ClassCastException: me.bw.fastcraft.MyCraftingInventory cannot be cast to org.bukkit.craftbukkit.v1_7_R4.inventory.CraftInventory
    2014-08-17 14:23:23 | [???] at com.lishid.openinv.internal.v1_7_R4.InventoryAccess.check(InventoryAccess.java:32) ~[?:?]
    2014-08-17 14:23:23 | [???] at com.lishid.openinv.OpenInvInventoryListener.onInventoryClick(OpenInvInventoryListener.java:30) ~[?:?]
    2014-08-17 14:23:23 | [???] at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source) ~[?:?]
    2014-08-17 14:23:23 | [???] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_51]
    2014-08-17 14:23:23 | [???] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_51]
    2014-08-17 14:23:24 | [???] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) ~[spigot.jar:git-Spigot-1586]
    2014-08-17 14:23:24 | [???] ... 21 more
    
    Last edited Aug 17, 2014 by MinecraftAdmin
  • Avatar of lishid lishid Aug 12, 2014 at 21:15 UTC - 0 likes

    @dddeeefff: Go

    I'll get that fixed soon. I believe that happens only for offline players who haven't visited your server since the UUID update (1.7.5?), is that correct?

Facts

Date created
Aug 27, 2011
Categories
Last update
Jul 29, 2014
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
OpenInv
Downloads
1,631,411
Recent files

Authors