[INACTIVE][ECON] SignShop v1.1 - Commandless Multi-World Player Owned Shops [860] iConomy

Discussion in 'Inactive/Unsupported Plugins' started by Ne0nx3r0, May 3, 2011.

  1. Offline

    Ne0nx3r0

    Development on this plugin has stopped.
    [​IMG]
    Commandless Player Owned Shops
    Current Version:​
    v1.1 [860] June 19th, 2011

    *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:
    Permissions Nodes (open)

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

    Changelog:
    Version 1.1
    • Bug fix - creates the plugin directory if needed.
    Changelog (open)
    Version 1.1
    • Bug fix - creates the plugin directory if needed.
    Version 1.0
    • Added localization, scheduled saving, custom signs, better localized logging, backing up of sellers.yml, proof of god, etc.
    Version 0.7.2
    • Lost to the world
    Version 0.7.1
    • Bug fix for iSell/iBuy signs
    Version 0.7
    • Added a small gaggle of new sign operations, small bug fixes. updated messages.yml
    Version 0.6.1
    • Moved gBuy/gSell to OP/Admin operations, as gBuy is exploitable.
    Version 0.6
    • Added gBuy/gSell signs, renamed config.yml to messages.yml
    Version 0.5.4
    • Bug fix for slot shops
    Version 0.5.3
    • Bug fix, added check/msg for missing chests
    Version 0.5.2
    • Bug/exploit fix - cancels event if the user does't have enough items
    Version 0.5.1
    • Bug fix for signs clicked with less than 3 characters
    Version 0.5
    • Added Permissions support, added configurable messages, added [Redstone] sign. Set plugin to respect events being cancelled. Various bug fixes and code maintenance.
    Version 0.4.2
    • Bug fix with confirmation messages showing the owners name instead of the players name
    Version 0.4.1
    • Bug fix with [Sell] signs paying shop owners
    Version 0.4
    • iConomy 5.0 support, also added Sell, Donate, Slot, iBuy, iSell signs
    Version 0.3.1
    • Bug fix
    Version 0.3
    • iConomy 5.0 compatibility, also signs now need [Buy] to be the first line. (Making room for [Sell], [Donate] signs)
    Version 0.2
    • Added yml persistence
    Version 0.1
    • Initial release

    Known Issues:
    • Conflicts with Essentials; disable signs in the essentials config before adding this plugin.
    Coming soon:
    • Extra storage (still working on it... infinite storage would be better, and might be possible ;))
    Donations:
    • I develop this plugin because I enjoy it and want to give back to this community; however if you are interested in supporting it's future I gladly accept donations via PayPal, and BitCoin.
    Do you like this plugin? Click like so I know! ; )
     
  2. Offline

    MikeC2103

    Oh that seems pretty useful! I've been looking for a way to repair stuff without it being too detrimental to the economy. Still need there to be some flow of items being used up. We have signs pretty much being the source of all the iconomy cash on the server. we buy coal/iron/gold/diamond to have something "solid" backing our money.

    I know this might be impossible or too much work.

    Would it maybe be possible to set lists of items in groups? So we could setup signs like this:
    [Repair]
    [Wood] - Repairs items set in the "Wood" group file. I would setup say wood/iron/gold/diamond, weapon/armor groups.
    <open text>
    <price> - price per durability point repaired like you were mentioning. With the groups this would allow me to make prices progressive. So diamond armor would cost more per point than iron etc..

    Anyways, thanks for the reply :D
     
  3. Offline

    Diemons

    Where's the video?
     
  4. Offline

    Joy

    1.2 has indeed fixed the issues with emptying locked chests!

    Now just that max range ;)

    Error popped up:

    Code:
    15:22:57 [SEVERE] Could not pass event PLAYER_INTERACT to SignShop
    java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
            at Ne0nx3r0.SignShop.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:199)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:306)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:167)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:64)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:455)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:431)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:341)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  5. Offline

    thorncrown

    Got the same problem here. First I create a sign - eg. [Sell], 1, Stone, 1. Then i wanna click with redstone on it, to connect the chest - Now I already sell for $1. I cant connect the chest! Redstone does not work. The sign seems like an infinite shop. Deleted the config and changed nothing. Bukkit #860

    Plugins: Essentials, iChat, iConomy, LWC, MultiVerse, NoCheat, Permissions, SignShop, WorldEdit, WorldGuard.
     
  6. Offline

    Sporling19

    how about a video tutorial.. i am too dumb to create a sign shop i think... i wrote

    i dont understand what i need to write what it needs to look like and how to create it... a screenshot and a example would be nice >_> (its not your fault, its mine but i tried it now like a half hour and dont get it x_x)
     
  7. Offline

    Joy

    Another bug/exploit:

    Item damage codes are not properly used at least in [Buy] Signs.

    Put a brown wool in a chest. Create sign link.
    Replace brown wool in chest with white wool. Your sign now creates brown wool out of white wool.
     
  8. Offline

    Flamers

    @ne0nx3r0 I have worked out the problem possibly, using /reload seems to break some signs for no reason.
     
  9. Offline

    MetalMadness

    I want to put just signs, and no chests. What would I put for the item name for mossycobblestone? it doesnt fit
     
  10. Hey, I've seen this plugin working sucessfully on many servers and I can't wait to get it up on mine :). I see you included the Permissions nodes, but can you explain what each one does in a little more detail? Thanks, and awesome plugin :D.
     
  11. Offline

    Ne0nx3r0

    The nodes decide which signs can be created, currently anyone can use any existing sign.

    Check out the usage in the first post. I'll see about setting up a video sometime soon to explain how it works.

    I'm going to have to see about setting up a custom method of moving items around, I might have something out this weekend to fix this.

    This would seem to happen when you are in the middle of creating a sign and the sign is broken before you click on the chest. I've added an error message for this, it'll be included in the next update.

    Are you getting an error? I'll see about setting up a video showing how these work soon.

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

    mcjason123

    2011-12-25 07:28:30 [SEVERE] while parsing a block collection
    in "<reader>", line 41, column 13:
    - 'iConomy.access'
    ^
    expected <block end>, but found Scalar
    in "<reader>", line 49, column 16:
    - 'SignShop.Signs.*'
    ^
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:520)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    2011-12-25 07:28:30 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    2011-12-25 07:28:30 [SEVERE] at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfiguration.java:54)
    2011-12-25 07:28:30 [SEVERE] at com.nijiko.data.YamlGroupStorage.reload(YamlGroupStorage.java:178)
    2011-12-25 07:28:30 [SEVERE] at com.nijiko.data.YamlGroupStorage.<init>(YamlGroupStorage.java:29)
    2011-12-25 07:28:30 [SEVERE] at com.nijiko.data.YamlCreator.getGroupStorage(YamlCreator.java:58)
    2011-12-25 07:28:30 [SEVERE] at com.nijiko.data.StorageFactory.getGroupStorage(StorageFactory.java:129)
    2011-12-25 07:28:30 [SEVERE] at com.nijiko.permissions.ModularControl.forceLoadWorld(ModularControl.java:93)
    2011-12-25 07:28:30 [SEVERE] at com.nijiko.permissions.ModularControl.loadWorld(ModularControl.java:84)
    2011-12-25 07:28:30 [SEVERE] at com.nijiko.permissions.ModularControl.load(ModularControl.java:105)
    2011-12-25 07:28:30 [SEVERE] at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permissions.java:186)
    2011-12-25 07:28:30 [SEVERE] at com.nijikokun.bukkit.Permissions.Permissions.onLoad(Permissions.java:139)
    2011-12-25 07:28:30 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
    2011-12-25 07:28:30 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    2011-12-25 07:28:30 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    2011-12-25 07:28:30 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    2011-12-25 07:28:30 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-12-25 07:28:30 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    how can i fix this?
     
  13. Offline

    capsar

    can you make a photo of some sign's I don't get what to do -,-
     
  14. Offline

    Bleepbloop

    Hey, not sure if it's just me, but I'm using the portecoulissante plugin along with the retractable bridge plugin to make a lava pit protected gate with a [DeviceOff] sign to extend the bridge over the pit and open the gate, and the sign won't turn the device off. Not getting any error messages, it's saying it was successfully deactivated but nothing happens.... Any help would be awesome, thanks.
     
  15. Offline

    Ne0nx3r0

    Seems like one of your permissions files has an invalid character - could be a tab or something I suppose.
     
  16. ok cool. that's what I thought just double-checking.
     
  17. Offline

    Haloflooder

    This is an awesome plugin! Everyone on my server loves it! But there is one problem. When i use [DeviceOn] with a lever, the lever doesn't enable the redstone. Do I have to set up the redstone a certain way?
     
  18. Offline

    Dev

    My Device signs are not activating levers. It takes the money, and doesn't interact with the lever/circuit at all.

    Another thing I've been seeing in my server log is something along the lines of:

    EDIT: Also, when you make a sign to sell colored wool, and make another sign to sell a different color, and put both colors into one chest, the signs will sell whatever is in the first slot of the chest, not necessarily what is on the sign.
     
  19. Offline

    maxexcloo

    I've found a bug:
    Shops work fine in WorldGuard protected regions but if someone tries to destroy the sign, the sign gets removed and re-added by WorldGuard (a result of protecting a region) but the shop gets destroyed. Any way this can be fixed?
    Thanks for an otherwise AWESOME plugin :)
     
  20. Offline

    Andrew1431

    My [Device] button toggles the switch correctly, but it seems to take a random amount of time to switch back, sometimes its instantly, sometimes it takes up to 20 seconds... ANybody have this ussue ?
     
  21. Offline

    Joy

    Any news on fixes for the two exploits? Such a wonderful plugin otherwise :/
     
  22. Offline

    biomann

    Hi! I am using SignShop on my Server with Bukkit 860. My mods can create Shops, but i cant create them, although im admin. See this screen: http://bit.ly/itx2lH

    Am i doing it wrong?
     
  23. Offline

    Stabhappy

    My requests:

    iSlot so we don't need to keep the chest stocked

    append currency sign before value, to if a sign reads:

    [Slot]
    A random sword

    50

    then when the sign is activated it will actually read

    [Slot]
    A random sword

    $50.

    Otherwise this is awesome.
     
  24. Offline

    Specops343

    Right, so I will be keeping this plugin updated, as the original dev has handed it over.
    Here's the new thread.
    @Joy What were the two exploits?
     
  25. Offline

    TaylorArcher

    Hey You should set it so it is as well compatible with WorldEdit/WorldGuard, and as well Towny, so you can buy plots and owners to property's.
     
  26. Offline

    Jez

    Problem :/
    I have put SignShop.Admin.* and SignShop.Signs.* in permissions. Also as im the owner i have the * as my permissions but i stipp put the two nodes in.

    It says [SignShop] You don't have permission to create this sign!

    What do i do, it is very annoying.

    Thanks in advance![creeper]

    Jez:confused:

    Problem :/
    I have put SignShop.Admin.* and SignShop.Signs.* in permissions. Also as im the owner i have the * as my permissions but i stipp put the two nodes in.

    It says [SignShop] You don't have permission to create this sign!

    It says this when i try to make day/night signs, or iBuy etc

    What do i do, it is very annoying.

    Thanks in advance![creeper]

    Jez:confused:

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

    BlokkFace

    Hey, when I click the chest with the redstone, no message comes up. It just opens the chest. Help !
     

Share This Page