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. And it keeps getting more awesome :p
     
  3. Offline

    dralletje

    Maare, je bent toch Nederlands?
    Want kan jij mij dan uitleggen hoe ik met Bukkit contribute een Inventory listener maak?
    Want er is nergens een tutorial over D: en ik krijg stees errors als ik het probeer.

    Can you add an config option to set time after wich a chest would be refilled for a user?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  4. Hmm maybe, I'll add that to the "To Do" list.

    I think I can start tomorrow on the programming again, I hope...

    @dralletje:
    Ja ik ben Nederlands,
    Uhm inventory listener kan je wat specifieker zijn? Contrib kan alleen kijken of een inventory window geopend wordt of gesloten.
     
  5. Offline

    dralletje

    dat is ook precies wat ik wil. ik wil zien wanneer iemand zijn inventory dus niet een chest ofzo, opent.
    zou je me daar mee kunnen helpen?
     
  6. Offline

    morizuki

    sorry.. I'm not sure if I read it right.. u mean my players don't need BukkitContrib SP? I just need to put BukkitContrib Server only? and that's it?

    EDIT:
    I tried using this and when the player look at the Chest in the Dungeon, it duplicates his Inventory but not all of them.. Some of them are the real treasures of the dungeon

    also all the items in the chest was disappeared when they absorb it(dropchest plugin)
     
  7. Only BukkitContrib on the server is required, PersonalChest Downloads it automatically for you.


    You mean really looking at the chests or looking inside the chests?


    It is not possible to alter the chest contents after you registered it.
     
  8. Offline

    morizuki

    Yes.. looking inside the chests..

    what do u min it cannot be altered?

    u min when I registered it and the chest absorb it, it will be gone? i tried removing it but it's still none..
     
  9. Can you be more specific on how it happens and what happens.


    The plugin works basically like this:

    The admin puts stuff inside the chest.
    Then registers the the chest with his "/pchest create" command.
    All the contents that are inside a chest are saved inside a file so the plugin always knows what the contents are.

    Then when a player opens the chest it loads the contents inside the chest from the file.
    When the player is done it creates another file that contains only the items left for that specific player,
    so when that player walks up to the chest next time it does't load all the other items that he already got.
     
  10. Offline

    morizuki

    before I installed the PersonalChest he open the chest, seeing the dungeon treasures.. then stop the server and installed the PersonalChest, after that, he open it, and close it to see the treasures, then I stop it again, configuring the PersonalChest to ALL WORLD.. then I start the server and when he opened it, it changed to his inventory, it's like duplicating his inventory to that chest..


    but i removed the pchest on that chest, but still when the chest absorbs it, it'll disappear..
     
  11. If you configured it for the whole world then yes it will always be activated to be a PersonalChest,
    even if you removed it, the plugin will automatically register the chest again.

    I shall add this to the "To Do List" because it could come in handy sometimes.
     
    morizuki likes this.
  12. Offline

    morizuki

    ok then.. sorry but just last question again hahaaa.. so I can be sure if they don't really need it, PLAYERS don't realle NEED BukkitContrib SP right?
     
  13. Nope server side only is required, and it will be downloaded automatically.
     
    morizuki likes this.
  14. Offline

    morizuki

    PersonalChest Regions? like let say In Town Region, i don't want the PersonalChest activated, but on other regions it will?
     
  15. I really like that idea,
    Tonight I will be working on some of the "To Do" Items.
     
    morizuki likes this.
  16. Offline

    morizuki

    Ok hahaa.. Main Priority the regions XD jk...
     
  17. Offline

    Sh00ck

    this is so nice :O

    Thank you! :)
    Then i can delete the KIT's :)
    and place Chests for that ;D
    Thats nice thanks
     
  18. Offline

    Scandragon

    How about a way to link a normal chest to a pchest?
    That way you can have a chest in banks that will always be accessible at every bank (and contain the same item)

    Don't get me wrong, this is absolutely perfect as it is.. But adding that small thing will make it even more perfect ;)
     
  19. It is definitively not a bad idea, also added to the "To Do" List.

    EDIT:
    Now I am really going to work on the project again :p
     
  20. Offline

    Sh00ck

  21. Offline

    Scandragon

    Everyone seems to rush to spout..
    mcMMO removed BC support in favor of spout..

    Yet neither me nor my 100+ players can use the spout client, as the login button does nothing..
    So please don't rush to spout untill it works
     
  22. @Sh00ck @Scandragon:
    What I could do is checking if sprout is already on the server, if that is true then it won't use Bukkit Contribute.
    Else it would do the usual and download Bukkit Contribute if necessary and use that one.
     
  23. Offline

    Sh00ck

    Really Nice :D
     
  24. It would be a low priority for now, have a lot of other things :p
     
  25. Offline

    Sh00ck

    -.-'
    this should be HIGH priority..
    because Spout is better than BukkitC.
     
  26. I made the ToDo List based on priority.

    I hope it will be in the 1.0 release.
    tonight/tomorrow there will be a 0.9 release containing:
    • Creeper and Griefer chest destroy protection (Explosion Protection).
    • Ability to unregister a chests from a PersonalChest world.
    • Add permission "pchest.open" to open chests.
    • Add permission "pchest.destroy" to allow to destroy the chests.
    • Unregister chest when destroyed.
     
  27. Offline

    mrgreaper

    please reconsider sprout as high priority, we cant use pchests untill it drops the auto downloading of bukkitcontrib :(
    oh and spout is bukkitcontrib, aparently its only a few references in code that need to be changed to make it work
     
  28. So if I understand if the auto download is disabled it will work with sprout?

    EDIT:
    NVM I see that sprout is the new framework and BukkitContrib is discontinued, so it is a high priority.

    EDIT2:
    I have removed the BukkitContrib support in the upcoming version 0.9 because it is discontinued and Sprout will be the new framework.
     
    mrgreaper likes this.
  29. Offline

    mrgreaper

    Thank you!
     
  30. PersonalChest is updated to version 0.9
    • BukkitContrib migration to Sprout (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.
    Some things you may have to look at.
    Version 0.9 runs on Spout, BukkitContrib is discontinued.
    Sprout will be downloaded automatically but BukkitContrib needs to be manually removed.
    Permission node "pchest.open" needs to be added to open chests.
     
    mrgreaper likes this.

Share This Page