[INACTIVE][ECON] SimpleShop v0.6.1 - Economy made Simple! iConomy [860-900]

Discussion in 'Inactive/Unsupported Plugins' started by codename_B, May 23, 2011.

  1. Offline

    codename_B

    [​IMG]
    SimpleShop
    Economy made Simple! iConomy!

    Version: 0.6.1
    Requires: iConomy

    Download: Download Link for 0.6.1

    Extra large font on the world global especially for SamSamurai
    Features: Allows users to buy items from a global shop. Also allows them to sell items to the global shop. This plugin is command based.

    Commands:
    /simbuy AMOUNT ID DAMAGE
    /price ID
    /simsell
    Permission nodes: simpleshop.buy simpleshop.sell simpleshop.price


    Configuration: Hopefully self explanatory, but here is some more detail.
    commented config file (open)
    #This is the SimpleBuy config file.
    #Now you can add the costs per block using the id. Included are commented sample values
    Currency=Dollar
    Buy=10
    Sell=8
    #Sets the cost of 1 of smoothstone ID=1 to 2
    #Stone
    1=2
    #Grass
    2=1
    #Dirt
    3=1
    #Cobblestone
    4=1
    #Wooden Plank
    5=1
    #Sapling
    6=5
    #Sand
    12=1
    #Gravel
    13=1
    #Gold Ore
    14=20
    #Iron Ore
    15=15
    #Coal Ore
    16=10
    #Wood
    17=2
    #Leaves
    18=5
    #Sponge
    19=10
    #Glass
    20=2
    #Lapis Lazuli Ore
    21=15
    #Lapis Lazuli Block
    22=60
    #Dispenser
    23=50
    #Sandstone
    24=2
    #Note Block
    25=50
    #Powered Rail
    27=10
    #Detector Rail
    28=10
    #Web
    30=50
    #Wool
    35=2
    #Dandelion
    37=3
    #Rose
    38=3
    #Brown Mushroom
    39=3
    #Red Mushroom
    40=3
    #Gold Block
    41=40
    #Iron Block
    42=50
    #Double Slabs
    43=4
    #Slabs
    44=2
    #Brick Block
    45=2
    #TNT
    46=100
    #Bookshelf
    47=3
    #Moss Stone
    48=3
    #Obsidian
    49=8
    #Torch
    50=1
    #Wooden Stairs
    53=2
    #Chest
    54=1
    #Diamond Ore
    56=35
    #Diamond Block
    57=90
    #Ladders
    65=5
    #Rails
    66=10
    #Cobblestone Stairs
    67=2
    #Lever
    69=2
    #Stone Pressure Plate
    70=2
    #Wooden Pressure Plate
    72=1
    #Redstone Ore
    73=3
    #Glowing Redstone Ore
    74=4
    #Stone Button
    77=1
    #Snow
    78=4
    #Ice
    79=8
    #Snow Block
    80=8
    #Cactus
    81=1
    #Clay Block
    82=2
    #Sugar Cane
    83=9
    #Jukebox
    84=50
    #Fence
    85=3
    #Pumpkin
    86=3
    #Netherrack
    87=5
    #Soul Sand
    88=10
    #Glowstone Block
    89=20
    #Jack-O-Lantern
    91=15
    #Bread
    297=14
    #Porkchop
    319=11
    #Cooked Porkchop
    320=20
    #Coal
    263=5

    Source: Included in the .jar

    Changelog:
    • v0.3 - 23/05/2011 - released initial plugin with configurable cost after going live with it on ubempire.com
    • v0.4 - 23/05/2011 - added /sell
    • v0.5 - 24/05/2011 - changed commands to /simbuy and /simsell - added configurable buy/sell ratio.
    • v0.6 - realised I'd forgotten to rebrand everything and it was still going by SimpleBuy - OOPS!

    *crosses fingers and hopes for plugin approval*

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  2. I would try this out but for what i need Selling has to cost more than buying :(

    Is this possible
     
  3. Offline

    codename_B

    Cost more than buying? This is very possible - I just need to do some simple math. I can do you a custom build with selling getting you 1/2 of the money.

    EDIT: Here you go - Download Link
     
  4. Yay! Awesome ill try this right now!

    Edit - hmm how do you edit the costs i can't find the config file. It didn't seem to autogenerate
     
  5. Offline

    codename_B

    It should have done, it autogenerates ONLY when you call /buy /sell or /price
    Try that :)
     
  6. I have, added permissions as well. Ill run through and check everything
     
  7. Offline

    codename_B

    If not, you can just place the config in /plugins/SimpleShop/Config.txt

    Trust me though, the code is there to go there, and it does get autocreated there.
     
  8. Cool ill give that a try, i don't have to add anything extra for the modified version?
     
  9. Offline

    codename_B

    Nope, it just uses 1/2 the cost of the buying.
     
  10. Err when I mean selling costs double the cost of buying, I'm not sure if this is what you've done i'll give it a true!
     
  11. Offline

    codename_B

    You buy for 64 you sell for 32?
     
  12. Yeah. I tried replying to this in the other thread but I guess that is gone now. I got it working without my other plugins but I couldn't sell things. This would be fine as it means I could charge more for quick text useage, or the players could goto a shop. However it seems to clash with IconomyChestShop, probably because they both use /sell and /buy
     
  13. Offline

    codename_B

    Well if you want some custom commands it takes me 2 minutes to do a build for you with custom commands...
    Name the commands you want instead of /buy and /sell and I'll have a custom build for you buy tomorrow.
     
  14. /simbuy /simsell would be amazing with the buy to sell ratio about 10:8 or anywhere really. I hope this gets a lot of attention, I can't believe all the text based shops dissapeared
     
  15. Offline

    codename_B

    Haha ewww complicated maths...
    How about I make it configurable? If I do that, I'll include it into the release. I might change the commands to those anyway since that will remove clashes. Thanks for your help ^^ expect v0.5 sometime tomorrow, with configurable buy:sell ratios!
     
  16. Hell yes! :p
     
  17. Offline

    adreide

    Nice plugin !

    I would add the functionality for a player to be able to buy stuff from another player even far away.
    Example:
    PlayerA: /sell id:durability quantity price playerB
    this command would make some sort of momentary offer to playerB. Then playerB has to confirm the intention to buy with another command like this one:
    playerB: /buy from playerA

    And also, if you have time, replace the id:durability by the names.
     
  18. Offline

    codename_B

    I wrote this plugin as a temporary replacement for signtrader on my server as I decided to make the push to iConomy5 (finally) but that left me without a workable economy plugin, and so I wrote my own.

    The point of this was to make it as super simple and lightweight in code as possible, I can't really add anything in terms of names without doing a whole rewrite. I'll think about it, but for now I'll stick with this simple solution.
    As for buying items from other players, that's completely out of the scope of this plugin, so that'll be a "never". If you want the functionality look for something like iConomy Chest Shops, or localshops, or something more weighty and with more features. I'd need to add inventory searching, inventory updating using the silly depracated code that's not really depracated because it's the only way to update the inventory, and silliness in general.

    If you have a look at my source you'll see the only time I even touch the inventory is in selling items, and even then, I only deal with what is in the players hand at the time. The whole plugin is just over 200 lines of code, I'd like to keep it that way if possible. Thanks for the suggestions though. I may consider item name searching, we'll see. It may require a few additional config files where people specify "names" to correspond to "id:damage" etc... again, we'll see.
     
  19. Offline

    BloodyDie

    and how to make the shop ? No vid. ? ;)

    ow find but... boring...
     
  20. Offline

    codename_B

    ?
    The shop doesn't require any "making" it's a super simple command based shop and its instantly setup.

    Version 0.5 is live! Let me know of any problems.

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

    marco213

    Look a cool one since Bettershop got outdated. I may give it a try ;)
     
  22. Offline

    GmK

    BetterShop isnt outdated and running perfect.

    @codename_B
    All the best with this, sounds promising for small servers!
     
  23. Offline

    codename_B

  24. Offline

    GmK

  25. Offline

    codename_B

    It's not gonna. I'm liking the buy:sell ratio thing that I've added :) very efficient and simple, and easy to change!
    Also whats cool is you can just add things to the Config.txt and don't even need to /reload
     
  26. Offline

    Superhykle

    its says to me your not allowed to do that.
    WHY??? :p
     
  27. Offline

    codename_B

    >.< I really hope you're trying to be funny atm.
     
  28. Offline

    Superhykle

    ehmmmmmm.... no XD
     
  29. Offline

    codename_B

    Have you setup the permissions? Your answer is no. Set them up.
     
  30. Offline

    Superhykle

    I DID, i put them in my permissions file
    but it still says that
     

Share This Page