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

    Scandragon

    I've just been thinking (yes, I know such things are dangerous, but I just can't help it)
    You're already working on linked chests.. But how about also pchests you need to buy access to (one time fee)..
    This means, banks can have maybe 11 large chests (bank01 to bank11 for linking purposes)
    The way I'd set it up, is have bank01 be free, and the rest people would have to buy one by one.. Giving them a maximum bank storage of 594 stacks..
    Naturally, I'd set bank02 at a low price and bank11 at a rather high price..

    Think of it as Xunlai chests in GW where you have to buy more storage panes with real money, just here it'll be in game money.
     
  3. Offline

    Buckethead

    yes being able to look view look and use
     
  4. I'm back :D

    There is no cap on how many players can use a PersonalChest.
    There is only no way to look inside a chest simultaneously that can only be one player at a time.




    I'm working on it,
    Sorry for the delay was on vacation...


    EDIT:
    Released version 1.0.1:
    • Added Residence Region Support
    • Fixed chests getting opened when viewed by an other player.
    • Tested for Bukkit 1060 (May manually update to latest Spout).
     
  5. Offline

    Mercury

    @rodey - Is it possible with PermissionsBukkit like players can make their own personal chests not to depend on admin but can't remove them.
     
  6. It is not recommended for now because you can exploit it to create multiple items.
    I will add a option to create empty chests for normal players so there is no exploit.

    It will then work like this:
    It will drop the items out of the chest when created, or it will display a message that it isn't allowed to create a PersonalChest with items in it.
     
  7. Offline

    morizuki

    Code:
    2011-08-22 22:36:59 [SEVERE] Could not pass event PLAYER_INTERACT to PersonalChest
    java.lang.NullPointerException
        at nl.rodey.personalchest.pchestManager.checkPersonalChestRegion(pchestManager.java:186)
        at nl.rodey.personalchest.pchestManager.checkChestStatus(pchestManager.java:603)
        at nl.rodey.personalchest.pchestPlayerListener.onPlayerInteract(pchestPlayerListener.java:60)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:63)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:478)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    when i try opening or punching a chest..
     
  8. Using the latest Recommended Bukkit and PersonalChest?
    What plugins are you using? Don't have any errors.
     
  9. Offline

    morizuki

    yeah I'm using RB and latest PC
    this only occurs when I've update to 1.0.1, ver 1.0.0 is fine..

    this is my config..

    Code:
    Regions: world.otaku, world.town, world.town_park, world.town_square, testworld.mining
    Debug: false
    Worlds: dungeon, world
    
    it seems I have problem on the config, i removed the regions and the worlds: world

    and it worked fine..

    I have a region called otaku, and inside otaku i have town, town_park, town_square subregion..

    in testworld, i made a region called mining it's more like underground below z:60..
     
  10. It has to to something with the residence support.
    I will look at it. Tought it worked...
     
  11. Offline

    morizuki

    wait.. i have both residence and worldguard plugin.. the one i've posted above is worldguard..
     
  12. Hmm that is maybe why it is messing up...
    I will add an option to define if you wan't to use WorldGuard Regions or Residence Regions...
     
  13. Offline

    morizuki

    ok.. the region is working..

    but i want to suggest something..

    1. Scanning all the chest in the world/region and turning it into a personalchest(onetime)?
    ---because, i don't want my player's chest to turn into a personal chest when they put a chest inside a region playerchest
     
  14. If that was possible then it would be nice but, that would mean that I need to scan all the blocks in the world :p
    And that could be a lot :p

    I would recommend then that you manually register the chests that you wan't to be PersonalChests.

    EDIT:
    You could do it easier so you don't have to type the command and looking at the chest.
    For the first time you could register the world/region to be all PersonalChests, then you only have to hit the chests that you want to be PersonalChests. If you are done you remove the world/region from the config.
     
  15. Offline

    morizuki

    oh.. that's nice.. but there are too many dungeons out there XD..
     
  16. I suggest that you should create specific regions for the dungeons.

    EDIT: Ow wait :p
    You mean normal dungeons...
     
  17. Offline

    morizuki

    yes.. normal dungeons XD
     
  18. Then the only option is:
    Make the whole world PersonalChest.
    Then also add the regions that you don't want to be PersonalChest.
    Inside those regions manually add PersonalChests.

    But also I know you want that dungeons to have PersonalChests but already raided dungeons are not fun anymore, because there will probably no monsterspawing anymore, because of the torches or a destroyed spawner...

    What I have for that is a combination of plugins and an Adventure map:
    The Adventure Map I use is the Skylands Adventure map.
    Then I use DreamLand to teleport players to that map when they sleep.
    And of course use PersonalChest and add the World for the chests.
    Then I use WorldRestore an other plugin from me to restore the world and so remove all torches and stuff from dungeons etc... when all players left the map.

    EDIT:
    Of course can you use any map but Skylands is cool xD

    EDIT2:
    I also made some changes to enhance the experience in the map,
    because normally it is a singleplayer map with teleport codes on each region.
    So I have at the spawn a teleport room with each region a doors with a password on it.
    So when players found a statue in that region with the password they can easily go back when they now the password of the door.

    For the teleport room part I used the plugins:
    LWC for the password doors.
    PressurePort for the Teleport things.



    If you want the complete pack PM me, I could make a bundle so you could do a drag and drop into your own server for easy installing.

    EDIT3:
    PM me if you want to join me on my server so you could have a look for your self.
     
  19. Offline

    morizuki

    I appreciate ur information.. but I have a plugin that they can't destroy the spawner, also using creaturebox, even if the spawner has a torch around, they can still spawn.. :)
     
  20. Offline

    Scandragon

    Just a fast note.. There's another way to speed up creation of these if you use essentials. The powertool
    Hold something and type /pt pchest create
    Then stand infront of a chest and hit anything with the same object

    Just an idea
     
  21. Cool didn't now that!
     
  22. Offline

    Zenithas

    Hmm. Causes the server to automatically download Spout when it cannot find it, which makes it harder to diagnose issues related to it.
     
  23. Offline

    blsimpson

    Never mind, I think this has to do with another plugin. Sorry!!

    Code:
    I have an issue and a question.
    Issue first -
    when I place a chest it says that it automatically creates the personalchest and is locked to other users. when I stand in front of the chest I placed, and type /pchest remove it says 'could not unregister chest', and I get this on the console:
    [QUOTE]16:11:45 [SEVERE] java.io.FileNotFoundException: C:\Users\XXXXX\AppData\Roam
    ing\.craftbukkit\plugins\PersonalChest\chests\Worlds\world\276_69_860.chest (The
    system cannot find the file specified)
    16:11:45 [SEVERE]      at java.io.FileInputStream.open(Native Method)
    16:11:45 [SEVERE]      at java.io.FileInputStream.<init>(Unknown Source)
    16:11:45 [SEVERE]      at java.io.FileReader.<init>(Unknown Source)
    16:11:45 [SEVERE]      at nl.rodey.personalchest.pchestManager.loadDoubleChest(pchestManager.java:1363)
    16:11:45 [SEVERE]      at nl.rodey.personalchest.pchestManager.remove(pchestManager.java:447)
    16:11:45 [SEVERE]      at nl.rodey.personalchest.pchestCommand.CommandRemove(pchestCommand.java:114)
    16:11:45 [SEVERE]      at nl.rodey.personalchest.pchestCommand.onCommand(pchestCommand.java:63)
    16:11:45 [SEVERE]      at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    16:11:45 [SEVERE]      at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    16:11:45 [SEVERE]      at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
    16:11:45 [SEVERE]      at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
    16:11:45 [SEVERE]      at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
    16:11:45 [SEVERE]      at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
    16:11:45 [SEVERE]      at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    16:11:45 [SEVERE]      at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    16:11:45 [SEVERE]      at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    16:11:45 [SEVERE]      at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
    16:11:45 [SEVERE]      at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    16:11:45 [SEVERE]      at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    16:11:45 [SEVERE]      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    16:11:45 [SEVERE]      at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)[/QUOTE]
    
    This would tell me that the chest is not actually being registered, as that file is not created.
    
    Secondly, the question -
    I am only using this plugin in the spawn house for new players to get a couple of things without setting kits up. Is there a way to only set one chest up for this, and not auto create them when i place other chests?
    
    Thanks for the help!
     
  24. For the first issue I don't understand how you get the message about the auto creating personalchest but I'll guess that is is due to the fact that you have added the world in the config. But then did you already try to open it before you did the remove command?

    For the second issue if you want only one chest do the following:
    - Make sure you have NOT added the world in the config (this config option is to automatically create chests in that world).
    - Then just do the command "/pchest create" in front of the chest, this will just make the chest personal.
     
  25. Offline

    blsimpson

    I do not have the world in the config file, but I also have LWC installed, and was mistaking its display for this one. This one is working perfectly, and couldn't be more happy with it!
     
  26. Offline

    HockeyMike24

    Could you add Spout support where when you find a chest for the first time it plays some kind of victory music/sound.
     
  27. I
    I shall have a look at it.
     
  28. Offline

    teaearlgraycold

    This plugin is awesome, but when i have it installed my server randomly crashes, without warning, lag, or any errors. I've checked my logs and no errors are outputed, its just ends. It's like someone force-killed the process, and it can lead to a corrupted map :( If you could please tell me whats going on, I'd love to re-install your plugin.

    I currently have a lot of plugins:
    Permissions 3.1.5
    Supernatural Players
    MonsterBox
    Falsebook
    Iconomy
    Spout
    Essentials
    VoxelSniper
    HeroChat
    Regios
    AntiCreeper
    GlabalShop
    mcMMO
    WorldBorder
     
  29. What I recommend to do is to remove all plugins and then one for one install each plugin to see what is the problem.
    My plugin should not make it force quit, sounds like java it self is bugged, maybe bukkit it self.
     
  30. Offline

    teaearlgraycold

    Yeah, but i've already done this before and eventually found out mcMMO had incompatability with perms 3.1.6 and dawngraded, and that took a couple days, because it can take 4 hours or so until it crashes. So i have to add a plugin, wait multiple hours, then add another until finally it crashes.
     
  31. Offline

    CoolOppo

    Good plugin! Downloading now!
     

Share This Page