[INACTIVE][ECON] SignShops v1.2 - Commandless Multi-World Player Owned Shops (iConomy) [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Specops343, Jun 30, 2011.

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

    Specops343

    [​IMG]
    Commandless Player Owned Shops
    Current Version:​
    v1.2 [1000] June 30th, 2011
    Download | Mirror | Source Code (Jar)


    *Requires iConomy (v5.0)​

    Some notes about upgrading from < 1.0:
    1. config.yml is the new messages.yml, you can delete messages.yml
    2. BACK UP YOUR sellers.yml BEFORE MAKING ANY CHANGES OR UPDATING (sorry, wanted to make that clear.)
    Create signs to sell goods from a chest you specify; allow your players to setup and run their own shops!

    Supported Signs:
    Supported Signs (open)

    [Buy] - Buys an item fro the shop chest for the price specified on the 4th line
    [Sell] - Sells an item to the shop chest for the price specified on the 4th line
    [Donate] - Gives an item to the shop chest
    [Slot] - Gives a random item from the selected chest items (not the entire inventory) to the player
    [DeviceOn] - Turns a lever on
    [DeviceOff] - Turns a lever off
    [DeviceToggle] - Toggles a lever
    [Device] - Temporarily turns on a lever
    *[gBuy] - Buys an item from the shop, but the owner receives no money
    *[gSell] - Sells an item to the shop, and the player receives money, but not from the owner.
    *[iBuy] - Buy an item from the "shop", but really the item is created from scratch whether the shop has it in stock or not.
    *[iSell] - Sells an item to the "shop", but really the item just disappears.
    *[Day] - Turns the time to day
    *[Night] - Turns the time to night
    *[Rain] - Turns on rain + thunder
    *[ClearSkies] - Turns off rain + thunder
    *[Repair] - Repairs the current item
    *[Heal] - Fully heals the player

    *Must be OP/SignShop.Admin to create


    Usage:

    Usage (open)

    1. Create a sign. Line 1 needs to be [Buy] (or whatever type of sign). Line 4 needs to be the price (aka 50, 50.25) of your item(s). lines 2&3 can describe your item(s), or be blank.
    2. While holding redstone, click on the sign. (you should get a message)
    3. Find a chest you want to use as your storage, put ONLY the items you want the sign to sell in it. For example, if you have a stack of 64 Cobblestone and want to sell two at a time, put only two in the chest.
    4. Click on the chest with redstone. (you should get a message)
    5. Put all of your cobblestone in the chest
    6. Now players can click on your sign (no redstone needed), purchase the cobbletone two at a time! (right click to buy without confirmation dialog)
    Note - One chest can maintain multiple signs, just take everything out and set the new sign up, then put all the items for both signs in so the shop has something to sell.


    Permissions Nodes:

    Nodes (open)

    • SignShop.Signs.*
    • SignShop.Admin.*


    Video (open)






    Changelog:
    Version 1.2
    • Updated by me, Specops343
    • Updated to latest RB
    Version 1.1
    • Bug fix - creates the plugin directory if needed.
    Known Issues:
    Note: I am taking over updating this plugin from ne0nx3r0, who is stopping updating his plugins. For more info, see here.

    Want to get a response from me? Do @Specops343 at the start of your post.
     
    maetthew, Juze and Greylee like this.
  2. Offline

    RIPerKilla

    @Specops343 Hello. Can you make configurable delay for [Device] sign? I'm going to build a metro, and this sign will be something like ticket shop. Current delay is too long for this matter. Maby it can look like [Device:5]?
    It's my basic construction:
    top view

    AAL
    CDC
    AAS

    Where:
    A - air
    L - Lever
    C - cobble
    D - Iron Door
    S - Sign

    Sorry for bad english, i'm from Belarus :D

    Almost forgot. It's awesome and simple in use plugin! :D
     
  3. Offline

    Sayshal

    Does this require iConomy? I want to use other things like Diamonds for currency.
     
  4. Offline

    RIPerKilla

     
  5. Offline

    Zelow

    Hello i wanted to say first of all awesome add on i had this working for like 2-3 days and while it was going it was awesome no problems, but i logged my server on today and got this message.

    [SEVERE] Error occurred while enabling SignShops v1.2 (Is it up to date?): null
    java.lang.NullPointerException
    at me.specops.signshops.Storage.Load(Storage.java:111)
    at me.specops.signshops.Storage.<init>(Storage.java:54)
    at me.specops.signshops.SignShop.onEnable(SignShop.java:113)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    Now I have no idea why it is doing this out of the blue as it worked fine last night and now it just stopped working today is there an update I do not know about? Also at first I had the v1.1 which worked fine, but then it had that same error so I can here to look for an update and I updated it only to get the same error. Please help as i would really love to keep using this plugin and i have put alot of work into creating a wall shop with these signs.
     
  6. Offline

    Mike187

    Could you please support PermissionsEX, not sure why but it says it cannot pass PLAYER INTERACT event to Signshops when I click on a chest with redstone.

    Please help, this is my favourite shop plugin.
     
  7. Offline

    Tealk

  8. Offline

    Specops343

    I will be pushing out a large update later this week.Signshops will be updated to support Superperms, and with the bridge, PEX. Also, @Dev features will be implemented, forcing item's to be in full condition in order to sell them.
    @Tealk I will look into iconomy 6 support for the update, but no promises.
     
  9. Offline

    Mike187

    = Win :D
     
  10. Offline

    Specops343

    Could you point me towards ico6? I failed to see a download on Niji's github for ico6.
     
  11. Offline

    H34DSH07

    2011-08-29 21:54:15 [SEVERE] Error occurred while enabling SignShops v1.2 (Is it up to date?): null
    java.lang.NullPointerException
    at me.specops.signshops.Storage.Load(Storage.java:111)
    at me.specops.signshops.Storage.<init>(Storage.java:54)
    at me.specops.signshops.SignShop.onEnable(SignShop.java:113)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    Getting this too.
     
  12. Offline

    Dev

    Does that also include proper checks for dyes?
     
  13. Offline

    Vinsssounet

    Using SignShop 1.2, working fine for the last couple of months, I just updated to CraftBukkit 1060.

    SignShop does not work anymore ;

    Code:
    2011-08-30 05:04:09 [SEVERE] Could not pass event PLAYER_INTERACT to SignShop
    java.lang.NullPointerException
        at Ne0nx3r0.SignShop.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:293)
        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.interact(ItemInWorldManager.java:210)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:573)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        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)
     
  14. Offline

    H34DSH07

    Was a such nice plugin. Simple, light-weight, comandless, and multi-world. Was perfect simply perfect... Until it crashed.
     
  15. Offline

    tomnicklin


    having exact same problem! I cannot figure it out etiher

    Thinking of using a Alternative now this is broke, any recommendations?

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

    Specops343

    This is extremely bleeding edge, however I think it will stop the cannot pass to PLAYER_INTERACT.
    <Edit by Moderator: Redacted mediafire url>

    Also another note: I deprecated Permissions 3.x support (its inactive), Signshops now supports superperms (this is untested, I'll do in-depth testing tonight.
     
    Last edited by a moderator: Nov 27, 2016
  17. Offline

    tomnicklin

    I will put it on my server now and report back in about 12 hours :)
     
    Last edited by a moderator: Nov 27, 2016
  18. Offline

    Mike187

    I tried the new build with PermissionsEX and I still get the same player interact problem when clicking the chest with redstone. Oh and I'm using BOSEconomy.

    21:53:32 [SEVERE] Could not pass event PLAYER_INTERACT to SignShops
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
    at me.specops.signshops.SignShopPlayerListener.getMessage(SignShopPlayerListener.java:71)
    at me.specops.signshops.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:277)
    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 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)
     
  19. Offline

    Specops343

    and @tomnicklin Have both of you tried the fix linked in the OP for PLAYER_INTERACT?
     
  20. Offline

    Vinsssounet

    I just tried it. It works quite fine... I can use the plugin with CraftBukkit 1060.

    BUT it won't let me use my current config file and sellers.yml. Si it would mean everyone would have to redo their Shops from scratch. Is there a way to make it work ?

    Here's the error I get when I try to put my config file and sellers files :

     
  21. Offline

    Zathras

    I'm trying to find ways to keep my console log from getting spammed. Is there a way to just make this a single message, instead of a double?
    Code:
    00:06:58 [INFO] [SignShop] Saving shops...
    00:06:58 [INFO] [SignShop] Shops saved!
    01:06:58 [INFO] [SignShop] Saving shops...
    01:06:58 [INFO] [SignShop] Shops saved!
    02:06:58 [INFO] [SignShop] Saving shops...
    02:06:58 [INFO] [SignShop] Shops saved!
    03:06:58 [INFO] [SignShop] Saving shops...
    03:06:58 [INFO] [SignShop] Shops saved!
    
    It just sort of seems unnecessary to announce that the plugin is about to do something. Just try the save and give a success or error after you try.
     
  22. Offline

    Specops343

    This will be a configurable option in the next update.
     
  23. Offline

    H34DSH07

    And please add an option to stop spamming the chat when someone buy something from your shop. I'd like to have theses in the log instead.

    I tried your new .jar but it's still not working. Do I have to delete the existing shops? :S

    Also there's 2 errors I don't know if that might help you.

    Code:
    09-01 17:39:53 [SEVERE] Error occurred while enabling SignShops v1.2 (Is it up to date?): null
    java.lang.NullPointerException
        at me.specops.signshops.Storage.Load(Storage.java:111)
        at me.specops.signshops.Storage.<init>(Storage.java:54)
        at me.specops.signshops.SignShop.onEnable(SignShop.java:113)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    and the regular PLAYER_INTERACT

    Code:
    2011-09-01 17:40:49 [SEVERE] Could not pass event PLAYER_INTERACT to SignShops
    java.lang.NullPointerException
        at me.specops.signshops.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:293)
        at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        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:458)
        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:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    And I'm using Permissions 3.X shall I move to superperms? Is it as good as Permissions?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 27, 2016
  24. Offline

    Dev

    I also have a feature request. Basically some of my users have had the bright idea of transporting large amounts of material around the map using signshop. I'd like to have the option to limit how far away the signs can be from the chests. Signtrader had a limit of something like 40 blocks, and I think that is a reasonable distance to store your chests from the signs.
     
  25. Offline

    Arton

    dos this plugin with with BOSEconomy ?
     
  26. Offline

    dannycrafts

    This mod works great for me, there is only one problem!
    I want to buy Lapis Lazuli, so I put up a [Sell] sign, so that people can sell their Lapis Lazuli. Now the problem is that Lapis Lazuli is an dye, and dyes have sub ids. So the store asks the player if they want to sell their >Ink Sac<, which is a dye, yes, but not the dye i'm looking for. The funny thing is though, that when they sell their ink sac, it gives me a Lapis Lazuli anyway!
    Anyway, please fix it. For the time being, I'll just put on the sign that it buys any dye, which is a nice glitch but I like to see it working anyway. ;)
     
  27. Offline

    Vinsssounet

    Ok... so the main thread tells us it's now 1060 friendly. Yet, some of us had issues keeping their config file.

    I don't believe it has been answered, so in résumé :

    - yes, the latest jar works with 1060 if I restart SignShop from scratch
    - no, I can't use it with my current SignShops config files and/or sellers, so it does mean redo every single shop in our world

    I do get it can't be easy to work with all the bukkit updates... but it would be nice to have an answer concerning the config. If it cannot be updated with previous config, better say it now, so we can start redo it.

    Thanks a lot !
     
  28. Offline

    Vinsssounet

    @Specops343

    Just noticed in the first page you said to quote you to have an answer. So, if you could check my post right above, thank you ;)
     
  29. Offline

    mxm24

    @Specops343
    can you give me a full list of permissions?

    it does need a chest for any sign that buys stuff or sells stuff

    you could use a buy sign and a fullchest plugin

    I do not like to use super permissions because i don't know how to use superperms(which i why i still use permissions 3.1.6 even though it is inactive i still think it is the best permissions plugin out there), Also, Do you know of a wiki for this plugin?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
    Zathras likes this.
  30. Offline

    vixenlove

    A few requests.

    1. After you get the message "Sign location stored". Then of course link it with a chest that has the item in it.
    But if you try to replace the item with something else, it doesn't allow you too...the redstone doesn't do anything and I have searched for a command to remove a "Sign location". Only way I have figured to clear out the "Sign Location" is to go to the config file and clear it or reinstall the plugin which requires you to redo every thing again. So fyi: Don't place a sign that buys dirt in the wrong location. LOL

    2. A way to set in the config file: Recieve messages if a player buys or sells from your shop.

    3. A way to set a configurable Transaction Cooldown Rate.
     
  31. Offline

    Eddienator

    Hi, I downloaded the plugin, and abit of it works. However, I can't do as in the video and type selling etc. Only the numbers. also when I punch the sign and chest with redstone i get no message, but then i rightclick the sign and it says "1 taken from your account. But everything is still in the chest but I get the items.
    Do I have a different version or what do I do? I downloaded the link at the top.
    Thanks
     
Thread Status:
Not open for further replies.

Share This Page