[INACTIVE][MISC] Alpha Chest v1.6.2 - Gives a use to virtual chests [714]

Discussion in 'Inactive/Unsupported Plugins' started by Mast3rPlan, Feb 14, 2011.

  1. Offline

    Mast3rPlan

    Alpha Chest (v1.6.1)
    Gives a use to virtual chests

    This plugin enables to give users a virtual chest, this can come in handy on survival servers and also on creative servers. When you die you will not loose the contents that are in the chest. You can simply open it by typing /chest and you can open other people their chests by typing /chest player!

    This plugin can work with Nijikokun's Permissions system, but it's not needed.

    Features:
    • /chest - Open your virtual chest (requires "ac.chest")
    • /chest [player] - Open someone else's chest (requires "ac.admin")
    • /clearchest - Clears your virtual chest (requires "ac.chest")
    • /clearchest [player] - Clears someone else's chest (requires "ac.admin")
    • /savechests - Saves the contents of the chests (requires "ac.save")
    • /reloadchests - Reloads the seperate configuration file if in-use. (requires "ac.reload")
    Configuration File:

    Only needed if you don't have permissions
    Code:
    admincmds:
        - ac.admin
        - ac.save
        - ac.reload
    admins:
        - Mast3rPlan
    
    Special Thanks To:
    • Mast3rPlan - For the main development and the idea of the plugin
    • kroimon - For helping me develop ths plugin and releasing new updates
    Beta Testers:
      • arco123
      • merdid
      • rastamonky
      • pm me if I forgot you
    Download Plugin:
    Changelog:

    • Version 1.6.2
      • Updated to latest CraftBukkit version to work with Minecraft 1.5_01
    • Version 1.6.1
      • Fixed bug saving chests in wrong location
    • Version 1.6
      • Updated to latest CraftBukkit version (b493)
    • Version 1.5
      • Minor bug fix (Changed name from "Alpha Chest" to "AlphaChest")
    • Version 1.4
      • Minor bug fixes
      • Add support for servers that don't have Permissions
    • Version 1.3
      • Minor bug fixes
    • Version 1.2
      • Added functionality for clearing chests
      • Minor bug fixes
    • Version 1.1
      • Fixed item data saving (Colored wool)
    • Version 1.0
      • Initial release of Alpha Chest
     
    NoFear13 likes this.
  2. Offline

    kroimon

    I just uploaded the decompiled source of AlphaChest here: https://github.com/kroimon/Bukkit-AlphaChest
    Just look there to get the file format ;-)

    Fixed it, should be working with the current versions for Minecraft 1.5. Built against CraftBukkt 714.

    Version 1.6.2 (half-official)
    [Download JAR file]
    [Sources at GitHub]

    (Just got the sources from Mast3rPlan and he asked me if I can fix it, but this fixed version is based on the decompiled last release, so it might contain bugs - please test it :))

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  3. Offline

    Mast3rPlan

  4. Offline

    Zwergnic

    /savechests isn't working
    I'm using craftbukkit 714 and Alpha Chest 1.6.2
    I get this error:


    Code:
    nullorg.bukkit.command.CommandException: Unhandled exception executing command 'savechests' in plugin AlphaChest v1.6.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:650)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:613)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:607)
        at net.minecraft.server.Packet3Chat.a(SourceFile:36)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:73)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
        at com.mast3rplan.alphachest.acChestManager.save(acChestManager.java:132)
        at com.mast3rplan.alphachest.acPlugin.performAcSaveChests(acPlugin.java:175)
        at com.mast3rplan.alphachest.acPlugin.onCommand(acPlugin.java:121)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
     
  5. Offline

    Godwar101

    /savechests error:
    Code:
    18:35:10 [INFO] /savechests - Saves all chests.
    18:35:15 [GRAVE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'savechests' in plugin AlphaChest v1.6.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:650)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:613)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:607)
        at net.minecraft.server.Packet3Chat.a(SourceFile:36)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:73)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
        at com.mast3rplan.alphachest.acChestManager.save(acChestManager.java:132)
        at com.mast3rplan.alphachest.acPlugin.performAcSaveChests(acPlugin.java:175)
        at com.mast3rplan.alphachest.acPlugin.onCommand(acPlugin.java:121)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
    When I stop my server I receive this error of this plugin:

    Code:
    18:36:15 [INFO] Stopping the server..
    18:36:15 [INFO] CONSOLE: Stopping the server..
    18:36:15 [INFO] Stopping server
    18:36:15 [GRAVE] java.lang.NullPointerException
    18:36:15 [GRAVE]     at com.mast3rplan.alphachest.acChestManager.save(acChestManager.java:132)
    18:36:15 [GRAVE]     at com.mast3rplan.alphachest.acPlugin.onDisable(acPlugin.java:42)
    18:36:15 [GRAVE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:129)
    18:36:15 [GRAVE]     at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:598)
    18:36:15 [GRAVE]     at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:230)
    18:36:15 [GRAVE]     at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:224)
    18:36:15 [GRAVE]     at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:105)
    18:36:15 [GRAVE]     at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:240)
    18:36:15 [GRAVE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:315)
    18:36:15 [GRAVE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  6. Offline

    blindsarcasm

    /savechests wont work and every restart the items inside are no longer there
     
  7. Offline

    kroimon

  8. Offline

    NEO

    Big issue with 1.6.3 upon updating when going into a previously existent chest the items are now gone that were there using 1.6.2

    CB 733

    It appears that it doesn't load the old chests that already exist. And typing /chest opening your chest then overwrites that old chest. Then a restart overwritten or newly made chests are only loaded.
     
  9. Offline

    kroimon

    That was an error with 1.6.2 which was unable to save the chests and therefore destroyed all stored chests :-/
     
  10. Offline

    NEO



    I had a backup with all my chests never touched by 1.6.2 and loaded them then ran 1.6.3 again and got the same effect.
     
  11. Offline

    kroimon

    Ok, investigated this issue and found the reason: if you're coming from 1.6.2, you should move/merge the chests directory right next to your server.properties into the correct directory plugins/AlphaChest/chests.

    Version 1.6.4 (official)
    [Download JAR file]
    [Sources at GitHub]
    • Fixed errors in loading/saving chests
    • Added auto-saving for chests every 10 minutes
     
    ZachBora likes this.
  12. Offline

    ZachBora

    praise the lord, auto save feature!
     
  13. Offline

    leslieliang

    Using /reload as an OP clears the virtual chest. Is there anyway to prevent this? I'm continuously reloading my server for updates and I don't want people losing their items.
     
  14. Offline

    Reterg

    What if you d0 "/savechests" before you do a reload?
     
  15. Offline

    kroimon

    A reload is the same as restarting the server (disables all plugins, then reenables them).
    AlphaChest should save all chests on disable automatically, so in theory nothing should be lost... And for me, it doesn't lose anything?
     
  16. Offline

    leslieliang

    When I do /savechests, it says there is an internal error occurred while attempting to perform this command.
     
  17. Offline

    Reterg

  18. Offline

    leslieliang

    Code:
    2011-04-28 23:21:39 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'savechests' in plugin AlphaChest v1.6.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
        at com.mast3rplan.alphachest.acChestManager.save(acChestManager.java:132)
        at com.mast3rplan.alphachest.acPlugin.performAcSaveChests(acPlugin.java:175)
        at com.mast3rplan.alphachest.acPlugin.onCommand(acPlugin.java:121)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Oh. I did not see an update. Author needs to edit OP.

    EDIT: It works. Thanks a lot!
     
  19. Offline

    Gogosjon

    Everytime when i stop/reload my server:
     
  20. Offline

    kroimon

Share This Page