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. Could you only reply with my name or something next time xD
    But I can't test it with all the plugins, Only the big plugins like WorldGuard, WorldEdit etc are tested in compatibility, but if you find some conflicting problems, you are free to let me know.
    I will have a look at them.
     
  3. Offline

    Knuckles5577

    I tried this with disposal chest my self but I have seen no problems except that I didn't have the config file for personal chest.... where is it? ( I don't see it here, does it need one?)
    edit: I didn't really test it enough... and after some more testing, I found that personalchests act like disposable ones... (The stuff in it disappears after closing)
    Also, I found this from my craft bukkit server logs:
    01:30 AM [SEVERE] Could not pass event InventoryCloseEvent to PersonalChest
    01:45 AM [SEVERE] Could not pass event InventoryCloseEvent to PersonalChest
    01:51 AM [SEVERE] Could not pass event InventoryCloseEvent to PersonalChest
    01:51 AM [SEVERE] Could not pass event InventoryCloseEvent to PersonalChest
    01:54 AM [SEVERE] Could not pass event InventoryCloseEvent to PersonalChest
     
  4. Offline

    dwatring

    I know the plugin is not updated for 1.2.4, but I'm just letting you know I'm getting this on start up:

    Code:
    012-03-27 22:12:54 [SEVERE] Error occurred while enabling PersonalChest v1.0.9 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
    at java.lang.ClassLoader.defineClass1(Native Method)
    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$100(Unknown Source)
    at java.net.URLClassLoader$1.run(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:41)
    at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:234)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:37)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at nl.rodey.personalchest.pchestMain.registerEvents(pchestMain.java:68)
    at nl.rodey.personalchest.pchestMain.onEnable(pchestMain.java:52)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:351)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:333)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:423)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:410)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:224)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:478)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener
    at java.net.URLClassLoader$1.run(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:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 27 more
     
  5. I'm letting you all know that I'm aware of the new Stable Release and that I will do everything on making it compatible with it!!
     
  6. Offline

    jjrambo

    Ok I've installed the plugin and I'm not getting any errors but when I type /pchest create, /pchest remove, or /pchest info, it just comes up again saying /pchest [CREATE:REMOVE:INFO]
     
  7. Offline

    nightphoenix16

    You should add a feature that will automatically reset the chest's contents after either a set time, or a certain event. (Flipping a lever, completing a dungeon, ect.)
     
  8. Offline

    Valdifer

    i have this minor error
    Show Spoiler
    2012-03-31 15:50:03 [SEVERE] java.io.FileNotFoundException: C:\Users\Raziel\Downloads\Minecraft Bukkit\Server 1.2.4 R1\plugins\PersonalChest\chests\Players\Valdifer90\chests.open (El sistema no puede encontrar la ruta especificada)
    2012-03-31 15:50:03 [SEVERE] at java.io.FileInputStream.open(Native Method)
    2012-03-31 15:50:03 [SEVERE] at java.io.FileInputStream.<init>(Unknown Source)
    2012-03-31 15:50:03 [SEVERE] at java.io.FileReader.<init>(Unknown Source)
    2012-03-31 15:50:03 [SEVERE] at nl.rodey.personalchest.pchestInventoryListener.getPlayerOpenedChest(pchestInventoryListener.java:86)
    2012-03-31 15:50:03 [SEVERE] at nl.rodey.personalchest.pchestInventoryListener.onInventoryClose(pchestInventoryListener.java:34)
    2012-03-31 15:50:03 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2012-03-31 15:50:03 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    2012-03-31 15:50:03 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2012-03-31 15:50:03 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
    2012-03-31 15:50:03 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    2012-03-31 15:50:03 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    2012-03-31 15:50:03 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    2012-03-31 15:50:03 [SEVERE] at net.minecraft.server.NetServerHandler.handleContainerClose(NetServerHandler.java:1048)
    2012-03-31 15:50:03 [SEVERE] at net.minecraft.server.Packet101CloseWindow.handle(SourceFile:16)
    2012-03-31 15:50:03 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    2012-03-31 15:50:03 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    2012-03-31 15:50:03 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169)
    2012-03-31 15:50:03 [SEVERE] at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    2012-03-31 15:50:03 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
    2012-03-31 15:50:03 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    2012-03-31 15:50:03 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)


    How i fix it?
     
  9. Version 1.2.0 is deleted because of an bug...
     
  10. Offline

    griffenx

    I tried this plugin a while ago and had to delete it because it spammed up my console with the same error message that Valdifer, Limeth and Fireblade945 have been getting. I tried it again tonight and it seems that I'm getting the same problem. It gives a separate error message for every user on the server, meaning that my entire console is spammed up with these error messages. /: I'm using bukkit 1.2.5-R1.0 and the latest PersonalChests version (which I downloaded today, in fact). It seems that the plugin is trying to reference a file that isn't being created. Could this be some error with the plugin not creating the right files? It'd be really nice if a fix for this could be made, since I need this plugin to make treasure chests on my adventure-themed server and there doesn't seem to be any other plugin that gives the same functionality.
     
  11. Can you gl to that directory and confirm the file is missing,
    If it is you could try to manually create the file "chests.open" just an empty text file with the .open extension.
    I will try to fix it ASAP.
     
  12. Offline

    griffenx

    I would, but it seems that it's not creating the /plugins/PersonalChest/chests/player directory, and I'd have to make that file for literally every player that comes on my server to stop the error message, which simply isn't practical. The only thing in the /chests folder is a folder called Worlds.
    I guess I could try it, though.

    Ok so I manually created the Player directory and added the chests.open files, but now it's giving me another error message:
    Code:
    >05:09:09 [SEVERE] Could not pass event InventoryCloseEvent to PersonalChest
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    at net.minecraft.server.NetServerHandler.handleContainerClose(NetServerHandler.java:1048)
    at net.minecraft.server.Packet101CloseWindow.handle(SourceFile:16)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 5
    at nl.rodey.personalchest.pchestManager.saveSingleChest(pchestManager.java:1142)
    at nl.rodey.personalchest.pchestManager.createPersonal(pchestManager.java:136)
    at nl.rodey.personalchest.pchestInventoryListener.onInventoryClose(pchestInventoryListener.java:68)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  13. Offline

    Demon1337

    So you just officially created the bank system for my runescape map i plan on using......
     
  14. Offline

    Deathn0t

    How can I resolve that probleme ?
    Code:
    [SEVERE] Could not pass event InventoryCloseEvent to PersonalChest
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    at net.minecraft.server.NetServerHandler.handleContainerClose(NetServerHandler.java:1049)
    at net.minecraft.server.Packet101CloseWindow.handle(SourceFile:16)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
    at nl.rodey.personalchest.pchestInventoryListener.getPlayerOpenedChest(pchestInventoryListener.java:108)
    at nl.rodey.personalchest.pchestInventoryListener.onInventoryClose(pchestInventoryListener.java:37)
     
  15. Ok, I'll have a look at it,
    It shouldn't occur every time does it?
    It's kinda random or not?
     
  16. Offline

    Deathn0t

    Yes it's kinda random but very frequently
     
  17. Offline

    limeyhoney

    Helps me with my community chest. Now its only for the new players! (or if they never took any.)
     
  18. Don't know what you mean with that...
     
  19. Offline

    limeyhoney

    People can't steal all the items then when I refill it come back and steal it all again.

    Edit: Maybe on August 1st make it so It dose something like this except with a enderchest
     
  20. Are you drunk? xD

    So what I think you are saying:

    People can't get the new items when you refilled it?
    If so, that is correct if you create the PersonalChest and want to refill it later
    you first need to delete it (/pchest remove) then put the new items back inside and create it again (/pchest create).
     
  21. Offline

    limeyhoney

    Gosh... Without this mod I need to refill my community chest. The people who've been playing come and take it right when I refill it. Now I don't need to refill it and the people who already took from the chest cant take it again.
     


  22. If you want to refill it you first need to delete it (/pchest remove) then put the new items back inside and create it again (/pchest create).

    This should clear the chest for other people too.
    They should then from now on see what you put in the chest (or is this where it goes wrong? or are you just happy with the plugin...).
     
  23. Offline

    limeyhoney

    I give up. You really don't get it do you.
     

  24. Well nope not quite...

    Are you just telling me that you want to refill the chest but the people who already took stuff from the chest won't get the new items?

    Just explain it in layman's terms.

    Quote form A. Einstein:
     
  25. Will this be updated for 1.3.1 soon as it would be ideal for something I'm working on ^^
     
  26. Offline

    ShadowLance9

    Would anyone care to update this? It worked so much better for me than TreasureChest or ChestRestock but it broke with 1.5.
     

Share This Page