[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

    tha d0ctor

    great plugin, this works so much better than realshop and the other shop plugins, I just finished making a whole mall with nearly every item possible!

    Just a quick uqestion, could you please add a feature to disable the message confirmations ingame when people buy from my server shops? Maybe make it so the transactions just go to my console and not the ingame chat to prevent chat spam?
     
  3. Offline

    Ne0nx3r0

    I could set it up so if you specify null for a message, it wont show up. I suppose a logging option might also be nice. I'll see what I can do.

    It's sort of beta-ish, but it should temporarily turn on whatever device you specify for ~5 seconds or so.
     
  4. Offline

    tha d0ctor

    thanks man! keep up the good work!
     
  5. Offline

    KaLul

    i mus post a problem here.
    i crashed my server by trieing to set up a [iBuy] sign.
    i always seem tzo sell air and then CRASH
    -.-
    how do i use this iBuy???
     
  6. Offline

    Ne0nx3r0

    What version?
     
  7. Offline

    KaLul

    newset downloaded today 0.7.1 cbuild 860
     
  8. Offline

    Ne0nx3r0

    Assuming you downloaded a fresh copy, try breaking the signs you made and make a new one
     
  9. Offline

    KaLul

    i did . but how should i make that ibuy sign?
     
  10. Offline

    Ne0nx3r0

    Like a normal buy sign, it should work fine 0.7 I think was the buggy version with iBuy signs.
     
  11. Offline

    KaLul

    but if i write:
    1line [iBuy]
    2line wood
    3line
    4line 5

    it doesnt work cause i dont need a chest
     
  12. Offline

    Ne0nx3r0

    You do need a chest it works just like buy. The difference is it just wont take the items from the chest.
     
  13. Offline

    Llamageddon

    Have you guys who have been experiencing problems got access to server logs? I had the exact same problem on my multiplay server. I was using the 0.6 version as no-one had updated it on multiplay. Whenever I clicked on a sign there were no console errors and nothing happened. In the logs, java was having a tantrum. As far as I could tell it was related to permissions and goldstandard mods.

    Maybe this error report will be useful to the author. I would really love to be told there is a simple solution.

    Code:
    2011-06-12 05:59:38 [SEVERE] Could not pass event PLAYER_INTERACT to SignShop
    java.lang.NullPointerException
        at Ne0nx3r0.SignShop.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:141)
        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:166)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:212)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:550)
        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:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    This occurred in the logs every time I tried to use a sign. I think the problem happened with the latest bukkit update. At one point the old shops were working but nothing happened when I tried to make a new one. Hope this is useful.
     
  14. Offline

    nanashiRei

    Hi, i've got a question regarding the way you handle the money transfer, because when someone buys/sells something to from/to the shop it does not get listed in the transaction table of iConomy. Could you please check why that is or maybe if you are doing the transaction in a way it's not meant to be used?

    This is quite essential because i made a website displaying every transaction a player does and the shop just does not get listed at all. (As you can imagine, they bug me about it a lot)

    Thanks
     
  15. Offline

    Ne0nx3r0

    Not sure, I just used the basic tutorial iConomy has; do you have an example of a plugin whose transactions are being logged that publishes their source? Maybe I can compare notes.
     
  16. Offline

    thestriker095

    How do the [Day] And [Night] Signs Work?
    (like how do you activate them?)
     
  17. Offline

    Ne0nx3r0

    You need the permission to create them, since they are in the admin category. You just set one up with a price, then click it with redstone and it's activated for players to use. They are quite nice, my players like day a lot.
     
  18. Offline

    thestriker095

    hi i was just wondering what the use for [DeviceOn] & [DeviceOff] & [DeviceToggle] & [Device] is and how do u use it?
     
  19. Offline

    Ne0nx3r0

    These are beta-ish; but you connect them to a lever instead of a chest. Then when someone pays the action is taken on the lever. Device turns the lever on for ~5 seconds. (This might be configurable in future versions)
     
  20. Offline

    thestriker095

    So if i understand correctly i make the sign then click it with redstone then click on a lever with redstone? and then the sign will turn on/off the lever?
     
  21. Offline

    Ne0nx3r0

    That's the jist of it; the Device one specifically might be a little buggy at this point, but toggle/on/off should work fine.
     
  22. Offline

    GFlow

    Hey, great work!
    Is there a way to make the chest lock when you activate it. I'd rather not get a chest-lock plugin. See, I run a pvp server, and raiding is a big part of it, but people want shops, and I don't want to give them full access to locking. I only want them to be able to lock their shops, not all of their chests. Is this possible (with your plugin)? If not, maybe any other ideas?
    Thanks!
     
  23. Offline

    Ne0nx3r0

    It seems like someone might just setup a shop chest for the express purpose of protecting it if you only protected shop chests; I'm not sure how you would get around that honestly...
     
  24. Offline

    GFlow

    wow good point. Ok thank you, this seems like an issue for a region/town plugin so i can specify where chests can be protected, and were they can't be.
     
  25. Offline

    thestriker095

    ok when i click on the [DeviceOn] Sign it says "sign location stored"
    but i cant click on a lever? well i do but there is no message and then when i hit the sign nothing happends?!
    im the admin of my server btw and have plenty of money!
     
  26. Offline

    LordCrazyKing

    Quick question, are the permissions nodes just for creating the signs? And if so, can you add permissions for using them as well? (maybe seperate for using normal and infinite too :D)
    I want players to be able to make these for everyone to use but i also want to make server ones that only people in the trader group can use.
    Also, is there a way to set the owner of a sign, e.g. player1 makes a signshop for player2 and wants to change where the money goes to?
    Looks like the best sign based plugin around!
     
  27. Offline

    Llamageddon

    Hi, I am running the latest version of SignShops with the latest version of iConomy and I still get this type of error when I try to create or click on signs:

    Code:
    2011-06-14 15:04:43 [SEVERE] Could not pass event PLAYER_INTERACT to SignShop
    java.lang.NullPointerException
        at Ne0nx3r0.SignShop.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:163)
        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:166)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:63)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:453)
        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:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Any ideas, it sounds like everyone else stopped getting this error lately and I have just started. It has worked intermittently in a previous update.

    I am also using the ATM plugin, GoldStandard and Residence which all use iConomy too, dunno if they might be culprits. I went an regenerated the iConomy databases just in-case but to no avail.

    Edit: I have removed everything but iConomy, Permissions and Signshop and I still get the same error. Here is the log of my plugins loading and bukkit version.
    Code:
    2011-06-14 15:34:25 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-823-gb9d0b04-b860jnks (MC: 1.6.6)
    2011-06-14 15:34:25 [INFO] Preparing level "Llamaland"
    2011-06-14 15:34:25 [INFO] Preparing start region for level 0
    2011-06-14 15:34:26 [INFO] [QuantumCircuits] Saving circuits...
    2011-06-14 15:34:26 [INFO] [QuantumCircuits] Circuits saved!
    2011-06-14 15:34:26 [INFO] [SignShop] v0.7.3 ENABLED
    2011-06-14 15:34:26 [INFO] [SignShop] Hooked into Permissions
    2011-06-14 15:34:26 [INFO] [RemoteBukkit] Query running on 85.236
    2011-06-14 15:34:26 [INFO] [RemoteBukkit] v0.3 Plugin Enabled.
    2011-06-14 15:34:26 [INFO] [RemoteBukkit] RCON running on 85.236
    2011-06-14 15:34:26 [INFO] [Permissions] Loaded default permissions
    2011-06-14 15:34:26 [INFO] [Permissions] Using default permissions for world: Llamaland
    2011-06-14 15:34:26 [INFO] [Permissions] v3.0b (MultiplayCompat) enabled
    2011-06-14 15:34:30 [INFO] [iConomy] Logging is currently disabled.
    2011-06-14 15:34:30 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    2011-06-14 15:34:30 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-06-14 15:34:30 [INFO] [SignShop] hooked into iConomy.
    2011-06-14 15:34:30 [INFO] [iConomy] hooked into Permissions.
    2011-06-14 15:34:30 [INFO] Done (0.516s)! For help, type "help" or "?"
    2011-06-14 15:34:34 [INFO] Llamageddon [/78.143.196.227:65136] logged in with entity id 125 at ([ Llamaland] -7.300000011920929, 69.0, 24.784961914734705)
    2011-06-14 15:35:20 [SEVERE] Could not pass event PLAYER_INTERACT to SignShop
    java.lang.NullPointerException
        at Ne0nx3r0.SignShop.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:163)
    
    etc.
    Edit 2: Just removed the end of my server IP in-case any miscreants read these forums ;)
     
  28. Offline

    Ne0nx3r0

    Llamageddon
    Hi, I am running the latest version of SignShops with the latest version of iConomy and I still get this type of error when I try to create or click on signs:

    Code:
    2011-06-14 15:04:43 [SEVERE] Could not pass event PLAYER_INTERACT to SignShop
    java.lang.NullPointerException
        at Ne0nx3r0.SignShop.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:163)
        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:166)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:63)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:453)
        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:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Any ideas, it sounds like everyone else stopped getting this error lately and I have just started. It has worked intermittently in a previous update.

    I am also using the ATM plugin, GoldStandard and Residence which all use iConomy too, dunno if they might be culprits. I went an regenerated the iConomy databases just in-case but to no avail.

    Edit: I have removed everything but iConomy, Permissions and Signshop and I still get the same error. Here is the log of my plugins loading and bukkit version.
    Code:
    2011-06-14 15:34:25 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-823-gb9d0b04-b860jnks (MC: 1.6.6)
    2011-06-14 15:34:25 [INFO] Preparing level "Llamaland"
    2011-06-14 15:34:25 [INFO] Preparing start region for level 0
    2011-06-14 15:34:26 [INFO] [QuantumCircuits] Saving circuits...
    2011-06-14 15:34:26 [INFO] [QuantumCircuits] Circuits saved!
    2011-06-14 15:34:26 [INFO] [SignShop] v0.7.3 ENABLED
    2011-06-14 15:34:26 [INFO] [SignShop] Hooked into Permissions
    2011-06-14 15:34:26 [INFO] [RemoteBukkit] Query running on 85.236
    2011-06-14 15:34:26 [INFO] [RemoteBukkit] v0.3 Plugin Enabled.
    2011-06-14 15:34:26 [INFO] [RemoteBukkit] RCON running on 85.236
    2011-06-14 15:34:26 [INFO] [Permissions] Loaded default permissions
    2011-06-14 15:34:26 [INFO] [Permissions] Using default permissions for world: Llamaland
    2011-06-14 15:34:26 [INFO] [Permissions] v3.0b (MultiplayCompat) enabled
    2011-06-14 15:34:30 [INFO] [iConomy] Logging is currently disabled.
    2011-06-14 15:34:30 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    2011-06-14 15:34:30 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-06-14 15:34:30 [INFO] [SignShop] hooked into iConomy.
    2011-06-14 15:34:30 [INFO] [iConomy] hooked into Permissions.
    2011-06-14 15:34:30 [INFO] Done (0.516s)! For help, type "help" or "?"
    2011-06-14 15:34:34 [INFO] Llamageddon [/78.143.196.227:65136] logged in with entity id 125 at ([ Llamaland] -7.300000011920929, 69.0, 24.784961914734705)
    2011-06-14 15:35:20 [SEVERE] Could not pass event PLAYER_INTERACT to SignShop
    java.lang.NullPointerException
        at Ne0nx3r0.SignShop.SignShopPlayerListener.onPlayerInteract(SignShopPlayerListener.java:163)
    
    etc.
    Edit 2: Just removed the end of my server IP in-case any miscreants read these forums ;)

    I'm not sure about this one; what sign are you using? Also have you tried downloading a fresh copy just for kicks? It says 0.7.3, but line 165 in that version seems pretty harmless. (assuming you're just clicking on the sign)

    Maybe try breaking the sign and recreating it, or it -could- be a case thing, (bUy vs Buy or something). I've made a note to deal with title casing better in the later versions, I just haven't implemented it yet.
     
  29. Offline

    Llamageddon

    Definitely checked it way [Buy] not [buy] Though I didn't think of testing it with other signs. Have tried breaking and recreating as well. Will keep tweaking and testing and let you know if there is anything else to report, or if I find the solution my end.

    Edit: Quite possibly it is a bad upload, I will get Multiplay to re-upload it and let you know if that fixes the problem. Also, could it be that they are using a slightly different version of Permissions than the latest release and that is causing the issue? Anyone else here using SignShops on a Multiplay server?
     
  30. Offline

    Asphodan

     
  31. Offline

    odielag

    Suggestion: Some way to get a list of shops in the world for certain items, and their location!!!
     

Share This Page