[FUN][ADMN] OpenInv 2.2.4 - Open anyone's inventory as a chest Real-Time! [1.4.5-1.7.10]

Discussion in 'Archived: Plugin Releases' started by lishid, Apr 30, 2011.

  1. Offline

    lishid

    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

    Link to BukkitDev: http://dev.bukkit.org/server-mods/openinv/

    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 use:
    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:
    Code:
    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)
    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.

    Code:
    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.
    Image:
    OpenInv.png
    Test.png

    Video tutorial:



    Credits:
    Thanks to WMisiedjan for the source of iSee, located here: http://forums.bukkit.org/threads/6676/
    Thanks to Dark_Balor from AdminCmd for helping with the bugs in Offline Openinv.
    Thanks to the many supporters who've tested this plugin.

    Download:


    Download OpenInv (2.2.4) CB1.4.5 up to CB1.7.10

    Legacy versions:
    See http://dev.bukkit.org/server-mods/openinv/

    Source Code

    Todo:
    • None ATM
    Bugs:
    • None ATM
    Statistics:
    Openinv will connect to http://mcstats.org/ to collect anonymous data (only version information).

    Changelog:

    Version 2.2.4[CB 1.7.10]
    • Fixed getting inventory from other plugin's custom inventory crashing

    Code:
    Version 2.2.2[CB 1.7.10]
    Finally fixed offline players
     
    Version 2.1.8[CB 1.7.10]
    Updated to MC1.7.10
    Removed metrics as the service is no longer available
     
    Version 2.1.7[CB 1.7.8]
    Fixed Offline player NoSuchMethodError
     
    Version 2.1.6[CB 1.7.8]
    Fixed ClassNotFoundError.
     
    Version 2.1.5[CB 1.7.8]
    Updated to CB1.7.8
     
    Version 2.1.4[CB 1.7.5]
    Updated to CB1.7.5
     
    Version 2.1.3[CB 1.7.4]
    Fixed silent chest not working with sneak+build.
    Removed /enderchest as alias for compatibility with Essentials. Use /openender or /oe instead.
     
    Version 2.1.2[CB 1.7.2]
    Changed updater to be compliant with new Bukkit rules.
     
    Version 2.1.1[CB 1.7.2]
    Changed updater to be compliant with new Bukkit rules.
     
    Version 2.1.0[CB 1.7.2]
    Update to CB1.7.2.
     
    Version 2.0.9[CB 1.6.4]
    Update to CB1.6.4.
     
    Version 2.0.8[CB 1.6.2]
    Added * nodes for permissions.
     
    Version 2.0.7[CB 1.6.2]
    Added OpenInv.openenderall permission node.
     
    Version 2.0.6[CB 1.6.2]
    Updated to CB1.6.2.
     
    Version 2.0.5[CB 1.6.1]
    Fixed editinv not locking shift-click and click-drag.
     
    Version 2.0.4[CB 1.6.1]
    Added config options for notifications for SilentChest and AnyChest.
     
    Version 2.0.3[CB 1.6.1]
    Updated to CB1.6.1.
     
    Version 2.0.2[CB 1.5.2]
    Updated to CB1.5.2.
     
    Version 2.0.1[CB 1.5.1]
    Fixed player loading crash caused by CraftBukkit internal change.
     
    Version 2.0.0[CB 1.5.1]
    Fixed trapped chest problem.
     
    Version 1.9.9 [CB 1.5.1]
    Updated to 1.5.1.
     
    Version 1.9.8 [CB 1.5]
    Updated to 1.5.
     
    Version 1.9.7 [CB 1.4.7]
    Fixed offline inventory not saved when server restarts.
     
    Version 1.9.6 [CB 1.4.7]
    Updated to 1.4.7.
     
    Version 1.9.5 [CB 1.4.6]
    Added new feature: Put item in any of the 5 unused slots and the item will be dropped by the targeted player.
     
    Version 1.9.4 [CB 1.4.6]
    Updated for MC1.4.6.
     
    Version 1.9.3 [CB 1.4.5]
    Fixed an issue about copying code from my other plugin without proper renaming.
     
    Version 1.9.2 [CB 1.4.5]
    Massive rewrite to support new CB naming system.
    Added auto-updater.
     
    Version 1.8.8 [CB 1.3.2/CB 1.4.2]
    Added permissions "OpenInv.openself".
     
    Version 1.8.7 [CB 1.3.1-R1]
    Added /openender <player>
    permissions, added "OpenInv.editinv", "OpenInv.openender", "OpenInv.editender".
     
    Version 1.8.6 [CB 1.3.1]
    Updated to 1.3.1. Not only works with 1.3.1.
     
     
    Version 1.8.5 [CB 1.2.5-R4]
    Fixed all problems related to Offline OpenInv (including inventory not updating AND/OR inventory being emptied on some occasions).
    Updated Metrics module to R5.
     
    Version 1.8.4 [CB 1.2.4-R0.1]
    Updated to MC 1.2.4.
     
    Version 1.8.3 [1.1-R6/CB 1.2.3-R0.1]
    Fixed perms not working.
     
    Version 1.8.2 [1.1-R6/CB 1.2.3-R0.1]
    New permissions system (removed support for old perms).
     
    Version 1.8.1 [1.1-R6/CB 1.2.3-R0.1]
    Updated to 1.1-R6.
     
    Version 1.7.5 [1.1-R3]
    Fixed Metrics add-on error on startup.
     
    Version 1.7.4 [1.1-R3]
    Fixed offline openinv being case sensitive.
     
    Version 1.7.3 [1.1-R3]
    New CB events.
     
    Version 1.7.2 [1.0.0-R1/1.1-R1]
    CraftBukkit refactoring. Fix the Exception caused by that.
     
    Version 1.7.1 [1.0.0-R1/1.1-R1]
    Statistics.
    Official CB1.1-R1 support.
    Still backward compatible (with 1.0.1-R1).
     
    Version 1.6.6 [1.0.1-R1]
    Help menu (/openinv ?).
    Code re-organizing.
    AnyChest now toggle-able.
     
    Version 1.6.5 [1.0.1-R1]
    Fix for silentchest + spout error.
     
    Version 1.6.4 [1.0.1-R1]
    Silent chest opening, no animation, no sound, use /silentchest to toggle on/off.
     
    Version 1.6.3 [1.0.1-R1]
    Switched toolbar from top to bottom.
    Added armor slots.
     
    Version 1.6.2 [1.0.1-R1]
    Added a fix for Offline Openinv.
     
    Version 1.6.1 [1550]
    Fixed inventory update bug that everyone was having!
    Updated for Minecraft 1.0.
     
    Version 1.5.2 [1185]
    Offline openinv bugfix.
     
    Version 1.5.1 [1185]
    OFFLINE OPENINV IMPLEMENTED.
     
    Version 1.4.6 [1118-1160]
    Fix conflict of anychest with other plugin.
     
    Version 1.4.5 [1118-1160]
    Fix for previous update not closing chests.
     
    Version 1.4.4 [1118-1160]
    Now allows opening of chests that are blocked by solid blocks on top!
    Use "OpenInv.anychest" for permission node.
     
    Version 1.4.3 [1118-1160]
    Toggle should now be saved between server restarts.
    Added configuration file.
    Configure the item to use instead of a stick be default.
     
    Version 1.4.2 [1118-1160]
    Fixed a character limit problem.
     
    Version 1.4.1 [1118-1160]
    Updated for 1.8.
     
    Version 1.3.3 [953+]
    Cross world openinv disabled! Use permissions node 'OpenInv.crossworld' to allow cross-world openinv.
     
    Version 1.3.2-test [818+]
    Try fixing compatibility problem.
     
    Version 1.3.1 [818+]
    Fixed for 818.
    Only works for 1.6+ (CraftBukkit RB 818).
     
    Version 1.2.3 [803-]
    Sign quick access: use second line for "[openinv]" (without quotes) and third line for target name.
    Use this for 1.5 versions.
     
    Version 1.2.2
    PERMISSIONS NODES CHANGE: please read permissions section.
    new "OpenInv.exempt" and "OpenInv.override" feature.
     
    Version 1.2.1
    MAJOR BUGFIX: inventory not updated correctly, especially after a death/respawn.
     
    Version 1.1.1
    New feature: /searchive Item Amount.
     
    Version 1.1.0
    New feature: sticks + toggle openinv (explainations on top).
     
    Version 1.0.3
    Fixed history not saved correctly.
    Fixed inventory access to respawned players.
     
    Version 1.0.2
    use the command without argument opens the last accessed person's inventory .
     
    Version 1.0.1
    Initial Release.
    
    Support the developer: [​IMG]
     
  2. Offline

    lishid

    Forgot to change the name on the link, Thanks!
     
  3. Offline

    544nick101

    Happy to help, lol.
     
  4. Offline

    The Wizard

    This version has /search cmd?
    I had to remove it from plugin.yml because it overwrite command book /search cmd.
     
  5. Offline

    Noah_Ivaldi

    I gotta' hand it to you; you make some really sweet plugins.
     
  6. Offline

    d00ba

    We use a Creative plugin that seperates Survival and Creative Inventories for each player. I assume this wouldn't work due to that?
     
  7. Offline

    Tanite

    /search egg

    ... used to let me search the MC data values. I'm not sure which plugin provides that for me but I've been using that for the entirety of my Bukkit career. Is there any way we can turn off that alias in the config? :)
     
  8. Offline

    LZLOWBATTERY

    Gr8 plugin :3
    Love it!
     
  9. Offline

    supayoshi1

    Would it be possibel to make it so that you can modify an offline users inventory?
    Or for example if the inventory doesn't exist, or the player and you type /openinv playernamenew that it will create a playerfile, or atleast the inventory file so that when the person first joins he will get his stuff?

    Thanks!
     
  10. Offline

    Tanite

    I figured out which plugin has the /search command: WorldEdit. And I guess CommandBook too based on what a prior poster said.

    :D
     
  11. Offline

    jellewie

    You dont supported PermissionsEX yet :(
     
  12. Offline

    strongy7

    I got a problem. It says : No handler. No Piping. UNEXPECTED REQUEST TYPE: POST

    I have CraftBukkit version 1.1 and your version of 1.7.2

    Please Help
     
  13. Offline

    c0LIn

    i got a request for ur next Update.

    on my server i cant use the stick with left click on User. I tested why and its because PVP is OFF on the server and if they r in Creative it doesnt work too.

    May u can fix this 2 Problems ?
     
  14. Offline

    Tanite

    What seems to be the problem?
     
  15. Offline

    jellewie

    If i write permissions to a group, it doesn't work
    I (jellewie owner) can't open anyone's inventory, but i do have all the permissions
    jasper (admin) can't either open anyone's inventory

    btw realy goog plugin :)
     
  16. Offline

    Tanite

    Firstly, you should use the CODE tag for a file like that, or better yet pastebin.com (and just post the resulting link so your post doesn't take up so much space). The formatting just comes out very hard to read otherwise and it also becomes very hard to see if anything is out of place.

    Second, I'm not sure of your exact issue but it looked like you have 2 "groups:" sections in that file and I'm pretty sure you're only supposed to have 1. I would probably seek help over on the PEX thread since they're used to diagnosing those issues. If you post a formatted link I might be able to spot something else. You also may want to post your PEX config.yml.
     
  17. Offline

    lishid

    Latest version 1.7.3: Now using new CB Events.
     
  18. Offline

    klutch2013

    you should add to your post that if you issue one of the commands and it replies back with "/openinv - open last person's inventory /openinv <player> - Open a player's inventory" that it is caused by an Outdated either Plugin or CraftBukkit.

    otherwise great plugin :)
     
  19. Offline

    Cat121

    It looks really useful !
     
  20. Offline

    544nick101

    It is :)
     
  21. Offline

    I8NY

    WARNING: I was testing this plugin out and it is case sensitive. "/oi Player123" is different than "/oi player123" It even created a new empty player.dat for the lower case "player123" that doesn't exist. I was using Linux so the two player123.dat files could exist at the the same time but it could most likely over write it in a windows OS. Two player.dat could possibly confuse minecraft if it isn't case sensitive.(pls correct me if I'm wrong on this) Please fix this and use at your own risk. CB git-Bukkit-1.1-R3-b1846jnks (MC: 1.1) (API version 1.1-R3) OpenInv version 1.7.3
     
  22. Offline

    lishid

    Yes, I'm working on fixing it...
     
  23. Offline

    glub_glu

    O.O
    I loved this plugin, it's awesome, thank you o/
     
  24. Offline

    lishid

    New version 1.7.4 fixes case sensitivity for offline openinv.
     
    I8NY likes this.
  25. Offline

    Lunga

    BOSS PLUGIN I STEAL FROM MY PLAYERS ALL THE TIME :D
     
  26. Offline

    Doc

    Feature request:
    OpenInv.viewonly

    Thanks for a SUPERB plugin!
     
  27. Offline

    Epics

    Heyo,
    I was wondering if you could maybe use the Limited Creative API to check that if they are trying to transfer items over the blacklist then it will deny it being placed in his inventory?

    Also..
    Code:
    04:35:30 [INFO] [OpenInv] Loading OpenInv v1.7.4.
    04:35:31 [SEVERE] java.io.IOException: Server returned HTTP response code: 500 for URL: http://metrics.griefcraft.com/report/OpenInv
    04:35:31 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
    04:35:31 [SEVERE] at lishid.openinv.utils.Metrics.postPlugin(Metrics.java:241)
    04:35:31 [SEVERE] at lishid.openinv.utils.Metrics.beginMeasuringPlugin(Metrics.java:185)
    04:35:31 [SEVERE] at lishid.openinv.OpenInv.onEnable(OpenInv.java:66)
    04:35:31 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231)
    04:35:31 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
    04:35:31 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:379)
    04:35:31 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191)
    04:35:31 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174)
    04:35:31 [SEVERE] at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
    04:35:31 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
    04:35:31 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
    04:35:31 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    04:35:31 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  28. Offline

    lishid

    New version fixes the HTTP error on startup.
     
  29. Offline

    Psyphil

  30. Offline

    lishid

Share This Page