[ECON/RPG] SIGN CHEST SHOP 0.4.5 (KTSHOP) [1185]

Discussion in 'Inactive/Unsupported Plugins' started by ktbanh, Aug 6, 2011.

  1. Offline

    ktbanh

    Sign Chest Shop
    0.4.5 (last update, edit 9/20/2011 6:27pm)
    0.4.52 dev (last update, edit 10/3/2011 4:18pm)

    Allow users to establish an economy through shops. Players can create chest shops which others can purchase items or sell items to. Server admins can create world infinite shops which allows trade using or one of supported economy through register API.
    • Customize your own shop signs (no longer requires strict formatting)
    • Player shops
    • Server shops
    • Supports register API (BOSEconomy, iConomy, Essential Economy)
    • sign colors [for regular signs and shop] &0-9 &a-f
    WARNING : READ ME
    • Currently has no lock protection (included in dev build)
    PERMISSION (open)


    Bukkit Permission Nodes (Ops default)
    shop.create.player : allow user/group to create chest shops
    shop.create.server : allow user/group to create server shops

    COMMANDS (open)

    /shop new <buy:sell> <quantity> <material> <price>
    /shop debug
    /shop flush
    /shop flush <player>

    TUTORIAL VIDEO (open)

    http://www.youtube.com/watch?v=u5W5YJGaOzw


    Thanks to Minecrafta2z for the extra tutorial video.


    TUTORIAL SCREENSHOT (open)

    [​IMG]

    DOWNLOADS (open)

    Current stable release 0.4.5
    Shop 0.4.5

    developmental builds
    Shop dev0.4.52


    0.4.51
    - logging, config/protection,new command /shop hand,
    - basic protection
    0.4.52
    - fixed food issues and right click placement, item usage bug when interacting with shop
    * use at your own risk as these are developmental ()


    Old release : supports physical currency, old format
    Shop 0.3.1
    Documents (only for 0.3.1)

    Archive
    Click Here

    CHANGELOG (open)

    0.4.5
    updated register, now supports iConomy6
    0.4.4
    fixed issue with currency format, added two command for Ops, /shop flush <player>
    0.4.3
    1.8 compatible, minor format change
    0.4.2
    properly removes shop upon player chest destruction
    0.4.1
    restricted placement of signs on already owned shops (re-implement from 0.3.1)
    0.4.0
    new data storage, no longer dependent on sign format
    users are now able to customize signs to their liking
    rewritten and revised for performance/user friendly
    some features are still being rewritten
    0.3.1
    fixed a security issue dealing with players being able to mimic server shops
    fixed version information in plugin.yml
    0.3
    added register api for major economy plugins support
    added physical shop option in configuration and currency definition
    added player chest type sell, players can now create shops that buy items from others
    updated handling code
    0.2.2
    removed hard coded currency display
    fixed critical inventory exploit
    updated to new sign format, server can now use buy/sell instead of server buy/sell.
    updated player shops are now defined when creating chest shops whereas server shops are not localized to chests
    0.2.1
    corrected op permission
    corrected remove last element bug
    properly removes regular items and items with modifiers
    0.2.0
    fixed null pointer exception
    fixed inventory transaction
    added server shops
    added material modifiers to shop
    rewrote inventory handling
    0.1.0
    initial release


    To Do
    - Bug fixes and compatibility
    - MYSQL web interface/database
    - Re-implement protection
    - Configuration
    - command line for item name, damage values

    Feel free to leave comments, suggestions or bug report(s)
     
  2. Offline

    everhaunted

    yes, if you or someone else could make a short video on how to make server and player shops that would be a great help. Thankyou, this is a great plugin. (not many of them have server shops)
     
  3. Offline

    Razick

    My signs won't work at all. This uses permissions bukkit directly right?

    Could you explain exactly what to do to install?

    I had it working earlier and then it just stopped. Then I restarted and re installed and it won't work.


    One improvement you could make is adding a permission node for unlimited shops so ops don't have to be used.

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

    ktbanh

    Hey guys, sorry i've been busy and haven't had a chance to reply/post new updates.

    I will be uploading a new version soon which is a complete rewrite. It should be faster much more user friendly and other features. However it will be in beta status until I complete the rest of the features.

    Thanks for the suggestion. :)

    Updates 0.4 beta,
    You can grab 0.3.1 and older versions from the file directory above and get instructions from "pages" for usage on the dev bukkit link.

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

    Razick

    The new version is great, I would like it if item names could be used though. I see you added the permission node. Thanks!
     
  6. Offline

    ktbanh

    You can use item names from the default minecraft item enums. I will be adding something more user friendly in the future however to query names. :)

    update 0.4.1
    Minor addition, I will most likely hold off on any updates until 1.8 due to new chest structure.

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

    dockter

    Permissions node doesn't support essentials.groupmanager.

    Doing a /shop command generates "requires shop permission" to user, even as a Owner.
     
  8. Offline

    ktbanh

    Hi dockter,
    Yes, I've only added support for the default bukkit permission since universally everyone would have access to it.

    I think you might have downloaded a pre-cache version while I was uploading. Try re-downloading it and let me know. It should work even if you haven't had permission setup (op default)

    It works with superPerm, bukkitPermission, and managers that bridge bukkit Permission. Let me know if you need help setting those up or if the permissions problem above persists.
     
  9. Offline

    ktbanh

    Minor update till 1.8
    0.4.2 - handles removal of shop upon player destroying chest with active shops.
     
  10. Offline

    ktbanh

    Update, 1.8 compatible and tested.
    A few minor changes.
    Little video tutorial until I can make a better one with more info.
     
  11. Offline

    Waltzy

    Hey ktbanh! Firstly let me say that this mod is beautiful in its simplicity, and so far I'm loving it!

    Ok, down to business, it may just be a 1.8.1 temporary bug, but I'm getting some strange behaviour, when I type /shop im getting "internal error" returned,

    Code:
    /shop new buy 1 1 1
    works, but I cant get what I assume is the help and usage as shown in your images above using /shop . the server is throwing this:

    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin Shop v0.4.3 	at
     org.bukkit.command.PluginCommand.execute(PluginCommand.java:41) 	at
     org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163) 	at
     org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:347) 	at
     net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756) 	at
     net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721) 	at
    net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714) 	at
    net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) 	at
     net.minecraft.server.NetworkManager.b(NetworkManager.java:226) 	at
     net.minecraft.server.NetServerHandler.a(NetServerHandler.java:91) 	at
     net.minecraft.server.NetworkListenThread.a(SourceFile:108) 	at
     net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464) 	at
     net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) 	at
     net.minecraft.server.ThreadServerApplication.run(SourceFile:417) Caused by:
     java.lang.ArrayIndexOutOfBoundsException: 0 	at
     com.ktbanh.shop.Shop.onCommand(Shop.java:61) 	at
     org.bukkit.command.PluginCommand.execute(PluginCommand.java:39) 	... 12
     more
    
    I really want to go live with this mod, its by far the simplest shop mod that integrates with iConomy from the users perspective; any advice here would be great!


    keep up the good work.


    - Waltzy

    PS im not a plugin developer but I have done a fair amount of Java,

    Code:
    java.lang.ArrayIndexOutOfBoundsException: 0 at com.ktbanh.shop.Shop.onCommand(Shop.java:61)
    looks suspect.

    PPS if you need more info,i.e, my config.yml form Permissions Bukkit, I'd be happy to upload it.

    Code:
    server version is git-Bukkit-0.0.0-1020-gb412283-b1124jnks (MC: 1.8.1)
     
  12. Offline

    ktbanh

    Hi walzy, I'm glad you like it. :) I just tested this on build 1124 with a default installation and it works (still spammy with console using the dev build for player positioning)

    Did you by chance edit any configs related to the shop or is this purely fresh without any alterations?
    Do you mind sending me the configs you do have and perhaps plugin list if the case is its default.

    I haven't made any changes to the command since 0.4 so it could be due to new changes i'm not yet aware of.

    I'll have to recheck permission but let me know, and thanks. :)
     
  13. Offline

    Waltzy

    It was fresh out the box!

    Shop plugin folder:

    http://46.226.248.31/Shop/


    PermissionsBukkit config.yml
    http://46.226.248.31/config.yml

    the shop.Jar:

    http://46.226.248.31/Shop.jar


    Installed plugins:

    2011-09-17 05:31:32 [INFO] Plugins: Permissions, Shop, iConomy MotherNature, PermissionsBukkit

    The entire server is relatively fresh, clean install of 1.8.1 / bukkit.



     
  14. Offline

    westmen41

    Getting an error...
    This is after I have successfully created a shop, and when I right click on the sign, I get this in the console:

    Code:
    01:36:02 [SEVERE] Could not pass event PLAYER_INTERACT to Shop
    java.lang.ArrayIndexOutOfBoundsException: 1
            at com.ktbanh.shop.listener.ShopPlayerListener.onPlayerInteract(ShopPlay
    erListener.java:147)
            at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:314)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:161)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:259)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:591)
            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:91)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  15. Offline

    EmsaStrange

    Tried the mod, its easy to use but it doesn't work, on my server it says something like "Can't interact with player". It's good but the overall shop doesn't work :/
     
  16. Offline

    ktbanh

    @Waltzy
    Hi waltzy, i'm checking it out now under the same condition and build you've posted; so far i've found no errors or oddity of recreating it. I'll have to run a few more cases to try and narrow down the error when I have more time. I'll let you know ASAP and hopefully find a solution.

    @westmen41
    Hi westmen, can you let me know the economy plugin you use, bukkit build version and current version of shop you are using? thanks. This error occurs with register formatting which I will need to check on.

    EDIT: I've found the problem (formatting). I'll fix it asap along with the other bug and re-release. ASAP.

    Hi emsa,
    can you post your bukkit version, shop build you are using, and exact error log? Perhaps a general plugin list would be great too. Thanks.

    EDIT: Could be related to the above which will be fixed if the case is its the same error. (formatting) let me know about the information still. thanks. :)

    update 0.4.4

    Should fix formatting issue with player interaction, caused by certain economy plugins with empty currency types, e.g. dollars, coins being empty.

    @Waltzy
    Try the new release and let me know, it should have optimized the command. (i'm still looking into the previous bug)

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

    Sayshal

    Hey, uhm.. this doesnt create any files other than data.bin :confused:
     
  18. Offline

    ktbanh

    Yep, there is currently no configuration for messaging/format. I'll re-implement it in the future once I've taken care of the cores.
     
  19. Offline

    Sayshal

    But like.. I cant use physical currency :(
     
  20. Offline

    ktbanh

    :( I'm still debating as if i should re-add it since iConomy 6 will be supporting physical currency. (from what i've read) I'll let you know or if enough wants it again as a default feature.
     
  21. Offline

    mao42ranma

    I'm getting...

    Code:
    17:58:14 [SEVERE] Could not pass event PLAYER_INTERACT to Shop
    java.lang.NullPointerException
            at com.ktbanh.shop.listener.ShopPlayerListener.onPlayerInteract(ShopPlay
    erListener.java:144)
            at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:314)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:164)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:259)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:591)
            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:91)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Using:

    CraftBukkit #1143
    Residence
    iConomy 6
    ChopTree
    Shop 0.4.4

    I can build the sign correctly, but it refuses to allow buying and selling, posting that error above instead.
     
  22. Offline

    Sayshal

    I dont want to have to use/have iConomy if im not using all its features. Please just implement it for now my server desperately needs it. PLEASE man.. I really can't afford another plugin.. :(
     
  23. Offline

    Waltzy


    Well, it seems to have fixed it ktbanh, thanks for looking into it so quickly :)

    Much love!
     
  24. Offline

    dxwarlock

    is there a way to log usage of global shops?
    one of my users has a HUGE amount of money, and trying to see what he was selling to global to get that much.
    cant tell if it was him himself, or someone else selling and transfering it to him.

    if not how hard would a simple log for global shops like each line in a txt is "(time) (user) (item) (money got)"
     
  25. Offline

    ktbanh

    Hi Mao42anma,

    That error is caused by iConomy6, I will update the register to it tonight hopefully when I get the opportunity.

    I'll try to re-implement it again once I update a few methods from its previous implemented version 0.3.1 and the above register.


    :) I'm glad it works for you.

    The implementation will be easy for the logger. I plan on having this swap to MySql in the future to connect with web interfaces etc or mapping so you'll be able to see player shops on the web, of what they sell, location, etc.

    But for now I can write up a quick logger or a separate attached plugin which admins will have the ability to log specific players or do you mean log all transaction by every player?
     
  26. Offline

    dxwarlock

    not even that much work..just any sign that's a server shop the transactions on them. (only main city has them)
    its the only way money comes into the economy, if I can see how these players are getting HUGE amounts of income, I can watch them to see how they are doing this.

    even to just a text file would be fine (or even better really, as more ways to access it). I can parse it out to get what I need.
     
  27. Offline

    mao42ranma

    Excellent, thanks. I used to use ne0nx3r0's Sign Shops, but he has gone on indefinite hiatus and also closed his server down as well. I'm glad to see you're actively developing your shop plugin. It's very easy to use.

    Most of the usual features have already been touched on, so I couldn't think of a decent request of my own, so I'll +1 the logging request of the previous posts.
     
  28. Offline

    breuemic000

    TY for the plugin, going to use this instead of showcase (too many problems with spout) I was wondering... how do you set up a shop using damage codes for things like dyes and colored wool?
     
  29. Offline

    ktbanh

    :)

    for damage codes or for example color wool, just use 35:<damage#> e.g. 35:2

    I will be updating and adding the logger next and then configurations/physical currency again as default.

    update 0.4.5

    Updated Register, now iConomy6 works.

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

    Sayshal

    Any update on adding physical currency? I cant use iConomy (just another plugin I dont want to have to use if I dont need to!)
     
  31. Offline

    SBHouse

    Hi. I use an older version on my server. I read one of the changelogs when you first moved up to 0.4.x, that you removed the physical currency and required an economy mod. But it looked like that might have been a temporary thing. We use gold ingots as our currency and I'd like to keep that going. Did you end up adding the option for physical currency and NOT having an economy mod?

    Thanks!

    -SBHouse
     

Share This Page