Inactive [MECH/FUN] PersonalChests v1.2.0 - Player bound chests [1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by rodey, Jul 6, 2011.

  1. PersonalChests - Player bound chests
    Version: v1.2.0

    NOW on BukkitDEV!

    This is my first plugin and even my first Java written thing
    Hope you will enjoy it :)

    This plugin makes it possible to have different chest inventories for each Player with one chest.
    If you register a chest with contents already in it each player will have the change to get the items like a treasure chest.
    It is also possible to make a inventory chest that can be used by each player personally.


    Features:
    • Treasure Chest like capabilities.
    • One chest different inventories for each player.
    • Entire world auto create PersonalChests.
    • Region Based PersonalChest (WorldGuard and/or Residence).
    • Large chest support.
    • Anti creeper and griefer support.
    Commands:
    • "/pchest create" : to create a PersonalChest.
    • "/pchest remove" : to unregister a PersonalChest.
    • "/pchest info" : to view is a chest is registered.
    Permissions:
    permissions aren't necessary it will fall back to the default OP functionality for the edit functions.
    • "pchest.edit" : Permission to allow players(Admins/OP) create or remove PersonalChests.
    • "pchest.open" : Permission that allows players to open PersonalChest.
    Config:

    Regions: Makes all chests inside this region an PersonalChest when used by someone.
    But if the region is in a PersonalChest World it will cancel the registering in that specific region.
    Debug: The usual displays debug info.
    Worlds: Make all chests inside this world automatically an PersonalChest when used by someone. Useful when your world is a custom made world with chests and inventory in it.


    ToDo:

    Download:
    Jar file: PersonalChest.jar
    Source Code:
    https://github.com/rodeyseijkens/PersonalChest

    A donation is greatly appreciated [​IMG]
    If you run a paid server and need some custom functionalities I'm willing to make that happen for you if you make a generous donation, contact me if you got some requests.



    Changelog:
    Show Spoiler

    Version 1.2.0 (4/4/2012)
    • Enchanted items Support!
    Version 1.1.2 (31/3/2012)
    • CB 1.2.4-R1.0 Support
    Version 1.1.1 (8/3/2012)
    • Fixed chest create double row bug
    Version 1.1 (4/3/2012)
    • 1.2.3-R0.1 Support
    • Removed Spout dependency (From now on you don't need Spout to run this plugin)
    Version 1.0.9 (7/2/2012)
    • Fixed default regions in config bug (Chest Interact Event).
    • Fixed Spout close chest event bug.
    Version 1.0.8 (29/1/2012)
    • Fix for new Event System.
    Version 1.0.7 (22/1/2012)
    • Fixed permisson "pchest.open".
    Version 1.0.6 (18/1/2012)
    • Fixed bug in the config where the regions don't get loaded properly. Make sure you have the correct config!
    Version 1.0.5 (29/12/2011)
    • Removed Permissions dependency, now you can use the permissions you like.
    Version 1.0.4 (20/11/2011)
    • Fixed some config bugs.
    • Registered chests now lock when spout is not loaded (useful to run on for example a newer CB version when spout isn't updated).
    • Works on CB 1337+ (minecraft 1.0) when spout is removed.
    Version 1.0.3 (1/10/2011)
    • Fixed item duplicate bug from Spout when player gets pushed away from chest. (Thanks to st_remy)
    • Fix the errors when a double chest was created is a chest was registered.
    • Remove and unregister chests when destroyed (still needs the "pchest.edit" permission).
    • Added "/pchest info" command to check if chest is registerd.
    • !!!Removed auto download Spout when not installed!!!
    Version 1.0.2 (22/8/2011)

    • Added support to use WorldGuard and Residence simultaneously.
    Version 1.0.1 (16/8/2011)


    • Added Residence Region Support
    • Fixed chests getting opened when viewed by an other player.
    • Tested for Bukkit 1060 (May manually update to latest Spout).
    Version 1.0.0 (9/8/2011)


    • Added Regional Based PersonalChest.
    • Fixed normal registerd chests not functioning.
    Version 0.9.3 (5/8/2011)


    • Bug Fix for chest in use event.
    Version 0.9.2 (5/8/2011)


    • Bug Fix for right click event for admin.
    Version 0.9.1 (5/8/2011)


    • Bug Fix for right click event.
    Version 0.9 (4/8/2011)



    • BukkitContrib migration to Spout (BukkitContrib no longer compatible).
    • Added creeper and griefer chest destroy protection (explosion protection).
    • Added the ability to unregister a chests from a PersonalChest world.
    • Added permission "pchest.open" to open chests.
    • Added nicer chat messages.
    Version 0.8 (16/7/2011)


    • BukkitContrib doesn't need to be downloaded manually anymore
      PersonalChest downloads it automatically for you now.
    Version 0.7 (14/7/2011)


    • Better check if chests are opened or not.
    Version 0.6 (13/7/2011)


    • Large chest support!!!
    Version 0.5 (7/7/2011)


    • Fixed right click interact event error on blocks.
    Version 0.4 (7/7/2011)


    • Fixed chest not automatically getting registered in PersonalChest Worlds.
    Version 0.3 (7/7/2011)


    • Fixed Double chests that ain't registered still get got message that they aren't supported.
    • Fixed single chests that ain't registered still check if in use.
    Version 0.2 (7/7/2011)


    • Fix when multiple players are viewing chest. Now only one person at the time can view a chest.
    • Large registered chest don't give an error anymore. They will display a message that I't isn't supported yet.
    • Registered Chests can't be destroyed. Need to unregister the chest to destroy a chest.
    Version 0.1 (7/7/2011)


    • Releasing my awesome plugin
     
  2. Offline

    caHarkness

    Sweet plugin! This really makes Zelda dungeon-making possible. This should make a huge impact on how RPG servers are "made 'n played" considering a lot of RPG games have things like this!

    10/10
     
  3. Thank you,

    I have a world running that was custom made with the chests and inventory already in them and I needed to have a functionality that every chest inventory was the same when a player opens it.

    Coudn't find a plugin that fitted my needs.

    I'm lucky that I can learn programming languages quick.
    It's my first time on Java Programming :p
     
  4. Offline

    Spl1tz

    Oh sweet jezas!

    I've been waiting for something like this!
    So in other words you just created THE perfect anti-chest-item-steal plugin? :O
     
  5. Glad to hear that :D
     
  6. Offline

    Spl1tz

    Woops, i found out a conflict!
    When a player1 has taken all the stuff out of the chest and still has chest open and player2 comes and opens the chest, the original items won't show for him!
     
  7. Shall take a look at it.

    Edit:
    Found the problem and going to fix it.
     
  8. Offline

    Spl1tz

    Hehe nice.
    I found another one though... i don't know exactly how i did it but... after the issue i broke the empty chest without using /pchest remove (i forgot about the command) then i placed a new one... after this i forgot what i did but all of it caused the inventory of Player2 to REFLECT/DUPE inside the Chest...

    Sorry i can't help u very much on this one, i was focused on fixing my server's lag it suddenly got.
     
  9. Offline

    Zarius

    Brilliant plugin! :) I plan on trying this out for the "welcome chest" to give players a starter kit without them having to type /kit. (my standard welcome chest keeps getting cleared out by random new players)
     
  10. Spl1tz, Thanks for the feedback on the bugs.
    I made a lot of fixes for the bugs that you made plus the ones that already where in my ToDo list.

    Keep the suggestions and bug reports coming!!
    not so many bug reports plz :p

    EDIT:
    Made some mistakes when I fixed to check if chest is registered stuff.
    Now chests get registered again when the world is defined as PersonalChest World.


    EDIT 2:
    Fixed some Right click interact event errors on blocks,
    next time I should better test before I release a new version...



    EDIT 3:
    Added Large chest support.

    EDIT4:
    Fixed the plugin, uploaded wrong build.
    New build is online.
     
  11. Offline

    fugue2005

    i created a chest, but when i try to open it i get
    Chest is currently in use
     
  12. Hmm, open your PersonalChest/chest/WORLD_NAME/OPEN delete all files in that.
    I'm working on a fix, you probably restarted the server while you where viewing inside a chest.

    EDIT:
    There is an update for a better check if chests are opened or not.
     
  13. Offline

    mrgreaper

    just installed and removed this, looks good though once bugs gone

    Code:
    2011-07-15 15:26:54 [INFO] Starting minecraft server version Beta 1.7.3
    2011-07-15 15:26:54 [INFO] Loading properties
    2011-07-15 15:26:54 [INFO] Starting Minecraft server on *:25565
    2011-07-15 15:26:54 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-920-g82c1a3d-b974jnks (MC: 1.7.3)
    2011-07-15 15:26:54 [SEVERE] Could not load 'plugins/PersonalChest.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: org/bukkitcontrib/event/inventory/InventoryListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at nl.rodey.personalchest.pchestMain.<init>(pchestMain.java:20)
        ... 13 more
    Caused by: java.lang.ClassNotFoundException: org.bukkitcontrib.event.inventory.InventoryListener
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 27 more
    bukkitcontrib is running and working
     
  14. I see you run 1.7.3, I'm going to test it on the latest CraftBukkit Build.

    EDIT:
    It works, in the newest Craftbukkit.

    I replicated the error by removing the required BukkitContrib plugin,
    so I suggest downloading the Complete Pack and installing it again.
     
  15. Offline

    mrgreaper

    In the Complete pack is just the PersonalChest.jar and Bukkitcontrib.jar

    we already have bukkitcontrib installed (latest from the bukkitcontrib thread) all installed and confirmed working, if i try to push the one from the complete rar it tells me its older and smaller, can u test your plugin against the newest bukkitcontrib, i think you will be able to replicate the error then.
     
  16. Ah, thought I had the latest version in it.
    Keep you posted.

    EDIT:
    I downloaded the latest version and still no error.

    But when I delete Bukkitcontrib I get exactly the same error that you posted...
    Code:
    16:27:09 [SEVERE] Could not load 'plugins\PersonalChest.jar' in folder 'plugins'
    :
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:173)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:199)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:122)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:119)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:90)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:51)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: org/bukkitcontrib/event/inventory/Inv
    entoryListener
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(Unknown Source)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$000(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at nl.rodey.personalchest.pchestMain.<init>(pchestMain.java:20)
            ... 13 more
    Caused by: java.lang.ClassNotFoundException: org.bukkitcontrib.event.inventory.I
    nventoryListener
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 27 more
    I also saw that Bukkitcontrib now supports auto-downloading. So I'm going to add that to the v0.8 release.

    Hopefully that one works then.


    EDIT2:
    Updated to v0.8
     
  17. Offline

    mrgreaper

    cool :) (well not cool that thers errors, but cool i didnt break it :) )
     
  18. I updated to v0.8 so maybe you can try that one.
     
  19. Offline

    mrgreaper

    cool no console errors, cant test the plugin itself yet as i got work very soon :( but once i get to work and its quiet ill give it a test

    having it download the latest version of bukkitcontrib sounds a bit dodgy though, if a version comes out that breaks with your plugin again its kinda an auto kill order lol
     
  20. It doesn't download the latest version I think but, the developer on that is a really good one and makes sure that it has fall backs :D
     
  21. Offline

    Reterg

    Does this also need the bukkitcontrib client mod?
     
  22. Offline

    Insanehero

    Brilliant plugin! I can now make chest banks!
     
  23. No it doesn't need the client mod.
     
  24. Offline

    Reterg

    Awesome, thanks. This plugin will come in very handy.
     
  25. I see that Craftbukkit 1000 is out but I'm currently not able to test it, because of computer problems.
    I doubt that the new bukkit version would break it but if someone could confirm this it is much appreciated.

    Thanks in advance!!

    EDIT:
    I can confirm that it is still working on Bukkit 1000
     
  26. Offline

    40540057

    it doesn't always recognize when I am standing in front of a chest, any known glitches with this? anything I could do to help it find the chest? happened on both 953 and 1000 ...
     
  27. Your crosshair needs to be pointed directly to a chest.
    I'm planning to implement a different action in a future version.
     
  28. Offline

    Asphodan

    @rodey :
    Anxiously looking forward to your "open" permission node.
     
  29. I currently have some computer problems so I can't test now while I program so that is not ideal...
    Hopefully I have it fixed tomorrow.
    When thats done I will add a lot more of the to do things like the "open" node and hopefully also the Chest destroy stuff for the greeting part.

    Just keep checking the forum for new updates.
     
  30. Offline

    dralletje

    thanks for this plugin :D it's awesome!!!!
     

Share This Page