Chest Stock -_-

Discussion in 'Archived: Plugin Requests' started by Reptar_, Oct 7, 2012.

  1. Offline

    Reptar_

    Suggested name: xStock

    What I want: I want a simple lightweight chest stocking plugin. Yeah yeah use ChestRestock. No, that doesn't work for me and my use. With this plugin, all chests (and I mean all chests!) in the world will be stocked by what's in the config. The chests will be cleared before stocking. Config should look like this:
    Code:
    items: stick, string, arrow
     
    #Items are separated with a comma.
    #Data values should work too.
     
    
    Super simple, I know. How hard is that?

    Commands: /stock - Regenerates all chests.

    Ideas for permissions: OP and console only.

    When I'd like it by: Tonight or tomorrow.

    Reasons why I do not use ChestRestock:
    • You have to set every individual chest.
    • Set chests do not actually open, you just view the inventory.
    • Does not restock when I set it to. (Config and in-game settings)
    • Does not recognize items in the item list.
     
  2. Offline

    Reptar_

    Anyone?

    Bump. . . .

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

    sharp237

    Why? This is quoted from the ChestRestock dev page... "Ability to set all chests in a world to restock with what is currently inside of them"
     
  4. Offline

    Reptar_

    It doesn't work for me. Plus it has a lot of other features that I don't want that gets in the way. Just want the simple /stock command. That's it.
     
  5. Offline

    warchicken

    I don't get this
     
  6. Offline

    Reptar_

    What don't you get?
     
  7. Offline

    Reptar_

    Still need this plugin.
     
  8. Offline

    AndyMcB1

    Isn't there already a plugin that can do this?
    ChestRestock as stated above.
     
  9. Offline

    Reptar_

    I already mentioned that ChestRestock does not work for me.
     
  10. Offline

    llamasaylol

    Will only work for loaded chunks, unless placed chests are kept in a list (meaning you'll have to replace them or use a command or something). If no one is doing this by tomorrow 5pm (GMT) I can make it for you.
     
  11. Offline

    Reptar_

    I have no chests placed at the moment. Plus, I highly doubt anyone will make it by tomorrow.
     
  12. Offline

    llamasaylol

    Here we go. http://puu.sh/1e7Of
    The command is (stuff in [] is nesercary and {} is optional) /AllChestRefill(ACR for short) [clear/refill] {world name}
    The permission is allchestrefill.use (But OP and console should auto have this).
    The config is [item ID]:[ammount];[item data] e.g. 1:64;0 will fill it with 64 stone. Also use ', ' to separate items.
     
  13. Offline

    Reptar_

    Awesome, this is perfect. I'll test it out now.

    Is it Java 7? Mind compiling it into Java 6?
    Code:
    16:17:37 [SEVERE] Could not load 'plugins/AllChestRefill.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/rrama/AllChestRefill/main : Unsupported major.minor version 51.0
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:154)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:223)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:199)
    at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50)
    at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
    at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:377)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.UnsupportedClassVersionError: me/rrama/AllChestRefill/main : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:143)
    ... 9 more
    
    I don't have the latest iOS, nor do I have the money to buy it. Therefore I can't update my Java.

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

    llamasaylol

  15. Offline

    Reptar_

    It works for only one chest, but it has to be a double chest. When there are no double chests, I get this error:
    Code:
    13:24:52 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'acr' in plugin AllChestRefill v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:498)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:880)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:826)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:808)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Chest
    at me.rrama.AllChestRefill.main.onCommand(main.java:72)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 15 more
    
     

Share This Page