[WIP/DEV] [SPOUT] IntelliStores - Create stores, hire employees and earn money

Discussion in 'WIP and Development Status' started by MillerMan, Aug 30, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Kardocraft

    It is more RP and your plugin looks like a plugin that is very usefull in a RP server with shops. So I say a employer need to go to the shop but you cant buy without a employer, right?
     
  2. Offline

    MillerMan

    Fair enough, I'll change it sometime tomorrow.
     
  3. Offline

    Kostronor

    Can you add an option to fully deactivate the whole confirmation, so people can shop while the whole shop-crew is offline?
    I'm looking forward to this :)
     
  4. Offline

    MillerMan

    This option has been added to the plugin as well as the option to not teleport staff to the store.

    You can configure these options in the config.dat file (you will need to reload the plugin once to generate it, and make sure you don't have the server running when you edit it.)

    Download is in the main post :)
     
  5. Offline

    Kostronor

    I tested it and the creation of a [storeitem] sign is not working.
    Updating the storesign is also buggy:
    Everything else works fine :)
    [​IMG]
    perhaps this error helps you a bit:
    Code:
    2011-09-05 10:42:45 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-09-05 10:42:45 [INFO] Reading data
    2011-09-05 10:42:45 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutText
    java.lang.NoSuchMethodError: org.getspout.spoutapi.gui.GenericLabel.setHexColor(I)Lorg/getspout/spoutapi/gui/Label;
    	at me.cain.spouttext.SpoutL.addText(SpoutL.java:33)
    	at me.cain.spouttext.SpoutL.onSpoutCraftEnable(SpoutL.java:20)
    	at org.getspout.spoutapi.event.spout.SpoutListener.onCustomEvent(SpoutListener.java:40)
    	at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    	at org.getspout.spout.PlayerManager.onSpoutcraftEnable(PlayerManager.java:81)
    	at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:121)
    	at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    	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:478)
    	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)
    2011-09-05 10:42:45 [INFO] [Spout] Successfully authenticated Kostronor's Spoutcraft client. Running client version: 1.0.5.262
    2011-09-05 10:42:55 [SEVERE] Could not pass event CUSTOM_EVENT to Intellistores
    java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Chest
    	at me.millerman.Intellistores.Store.getChestStock(Store.java:147)
    	at me.millerman.Intellistores.Store.chestSignRefresh(Store.java:116)
    	at me.millerman.Intellistores.ISInvListener.onInventoryClose(ISInvListener.java:31)
    	at org.getspout.spoutapi.event.inventory.InventoryListener.onCustomEvent(InventoryListener.java:48)
    	at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    	at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:212)
    	at net.minecraft.server.Packet101CloseWindow.a(SourceFile:16)
    	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:478)
    	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)
    
     
  6. Offline

    MillerMan


    Looks like you wrote [itemstore] instead of [storeitem]. That error is unrelated :)

    Updated a couple of things anyway. Download here.
     
  7. Offline

    Kostronor

    Code:
    2011-09-05 11:22:49 [SEVERE] Could not pass event SIGN_CHANGE to Intellistores
    java.lang.NullPointerException
    	at me.millerman.Intellistores.ISBlockListener.onSignChange(ISBlockListener.java:102)
    	at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.java:469)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:994)
    	at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
    	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:478)
    	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)
    2011-09-05 11:23:17 [SEVERE] Could not pass event SIGN_CHANGE to Intellistores
    java.lang.NullPointerException
    	at me.millerman.Intellistores.ISBlockListener.onSignChange(ISBlockListener.java:102)
    	at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.java:469)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:994)
    	at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
    	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:478)
    	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)
    the same two errors even with [storeitem]
     
  8. Offline

    MillerMan

    Sorry about this, I guess it's better to sort out these errors sooner rather than later.

    Try downloading the latest version here, then go into /plugins/intellistores/ and delete everything. Start up your server and replace all the signs. It should work. Thanks for being helpful and testing it.
     
  9. Offline

    Kostronor

    Well, sorry but placing a [store] sing cases this error now:
    Code:
    2011-09-05 12:41:05 [INFO] [Spout] Successfully authenticated Kostronor's Spoutcraft client. Running client version: 1.0.5.262
    2011-09-05 12:41:19 [SEVERE] Could not pass event SIGN_CHANGE to Intellistores
    java.lang.IllegalAccessError: tried to access method me.millerman.Intellistores.Intellistores.genStoreID(Lorg/bukkit/entity/Player;)I from class me.millerman.Intellistores.ISBlockListener
        at me.millerman.Intellistores.ISBlockListener.onSignChange(ISBlockListener.java:27)
        at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.java:469)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:994)
        at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
        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:478)
        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)
    2011-09-05 12:41:19 [SEVERE] Could not pass event SIGN_CHANGE to Intellistores
    java.lang.IllegalAccessError: tried to access method me.millerman.Intellistores.Intellistores.genStoreID(Lorg/bukkit/entity/Player;)I from class me.millerman.Intellistores.ISBlockListener
        at me.millerman.Intellistores.ISBlockListener.onSignChange(ISBlockListener.java:27)
        at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.java:469)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:994)
        at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
        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:478)
        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)
     
  10. Offline

    MillerMan

    [skeleton] Try it one more time please? (download) Also make sure you have bukkit build #1060.
     
  11. Offline

    Kostronor

  12. Offline

    MillerMan

    Ok, thanks for all your help. I'll try fix it tomorrow.

    EDIT: Actually, looks like you're starting up IntelliStores 3 times, make sure there's only one copy in your plugins folder.
     
  13. Offline

    Kostronor

    ok, signs are working now, but with both configs to false i get this when trying to sell to myself:
    [​IMG]
     
  14. Offline

    MillerMan

    Should be fixed now. The method it used to find employees didn't include owners as well. Download
     
  15. Offline

    Kostronor

    @MillerMan
    very cool, works now!
    can you add an option where there is no need for an employee to confirm the sell?
    also a sign with a prepared amount of items sold at once (without the need of an additional command) like one click adds one/twenty/one stack to your cart (like a vending machine)
    this would be more easy for small servers and reduces the need of commands.
    And, are chests protected for every non-employee?
     
  16. Offline

    MillerMan

    If you change requireStaff to false in config.dat (make sure the server isn't running) staff are no longer required to authorize sales.

    The vending machine idea sounds very good, I might put it in.

    Chests aren't protected, but you can use a plugin like lockette. (I'll probably add chest protection in the future)
     
Thread Status:
Not open for further replies.

Share This Page