Inactive [ECON] GlobalShop v0.6 - A simple global shop provided through commands [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Phate123, Jun 8, 2011.

  1. Offline

    Phate123

    GlobalShop - simple global shop that uses iConomy:
    Version: v0.6

    have a look at the GlobalShop BukkitDev Page: http://dev.bukkit.org/server-mods/globalshop/

    you will need some economy plugin installed. GlobalShop provides support for iConomy 4, 5, & 6+, BOSEconomy 6 & 7, Essentials Economy 2.2.17+, MultiCurrency thx to Nijikokun's Register API. Register is implemented in GlobalShop so you don't need to install it seperately!

    Now supporting SuperPerms. If you don't want to use SuperPerms GlobalShop still supports Yeti's Permissions.

    This shop is used through commands. At moment where are five of it:
    Commands:
    • /price (name|id) -> Shows you the price you must pay to buy name|id
    • /buy (name|id) [amount] -> Buy name|id with optional amount
    • /checksell -> Shows you the money you would get for the item you are holding
    • /sell -> Sells the item you are holding
    • /shop reload -> Reloads the config of GlobalShop
    Permissions
    There are ParentPermissions for SuperPerms: globalshop.trade.* and globalshop.admin.*
    • 'globalshop.trade.buy' -> Allow /buy and /price
    • 'globalshop.trade.sell' -> Allow /sell and /checksell
    • 'globalshop.admin.reload' -> Allow /shop reload
    Features:
    • Shop that can be accessed from everywhere
    • You can add customizable item names
    • Damage/Color can be defined in config. So you can sell for example black_wool
    • Considers the durability of an item to calculate the selling price
    • You can set the sellratio. This defines how much money you get for selling an item. Default is 80%
    • All commands can be renamed to your wish by reconfigurating the aliases in plugin.yml HowTo
    Planned features:
    • Setting up prices with commands
    • Writeout of a HTML-File where all prices can be viewed
    Configuration:
    Sample Config File:
    Code:
    #GlobalShop 0.6 by Phate
    #Configuration File
    
    #Use Yeti's Permissions system?
    useYetiPerm: false
    
    #Here the sale ratio is determined
    buysell: 0.8
    
    #Here the shops Item- and Pricelist is determined
    #This is how the items are defined:
    #- ItemID:ItemName:Amount:Price(:Damage/Color)
    ShopItems:
    - 1:stone:64:10.00
    - 4:cobblestone:64:7.00
    - 278:diamond_pickaxe:1:160.00
    - 35:white_wool:64:14.00:0
    - 35:black_wool:64:16.00:15
    
    Download:
    v0.6 http://www.x-pantion.de/bukkit/GlobalShop0.6.jar

    Source:
    http://publicprojects.x-pantion.de/gitweb.cgi/globalshop.git

    Changelog:
    Version 0.6
    • removed permissions out of command nodes in plugin.yml to avoid "Bukkit is sad ..."
    • Bugfix: non player command handling
    Version 0.6b2
    • Superperms support
    • Changed namespace for implemented Register
    Version 0.6b1
    • Implemented Nijikokun's Register to support more plugins
    • Support for < RB1000
    Version 0.5.2
    • Bugfixing Permissionhandling if no permissions plugin is installed
     
  2. Offline

    kokokola

    When i tried to sell sth i get:
    WTF?
     
  3. Offline

    Phate123

    K
    Of course you must install iConomy first. No other economy plugins are supported yet.
     
  4. Offline

    kokokola

    Now works. Thanks for help :)
     
  5. Offline

    Plague

    please update do latest recommended CB
     
  6. Offline

    Phate123

    Tested on Craftbukkit Build 860. No issues found.

    Also introducing v 0.3
     
  7. Offline

    Gamingshadow1

    Can you make the command /shopsell for me because there is another plugin related to /sell and I cannot remove that plugin. /buy is fine
     
  8. Offline

    kevinkrw

    Could you please make a webpage or add to your post the permissions? And the same thing that GamingShadow1 said above needs to be fixed.
     
  9. Offline

    Phate123

    you can set up the command aliases yourself. Open the GlobalShop.jar in an ArchiveProgram (such as Winrar). Edit the plugin.yml to your needs and put it back in the jar-File.
    Change this lines:
    Code:
    gs_sell:
        description: Sell item in your hand to GlobalShop
        aliases: sell
    to this lines:
    Code:
    gs_sell:
        description: Sell item in your hand to GlobalShop
        aliases: shopsell
    Permissions support is not implemented yet. This is a feature that is planned for the future
     
  10. Offline

    kevinkrw

    Thankyou and GamingShadow helps with my favorite server so thanks for the help :)
     
  11. Offline

    ats1080

    @Phate123
    Hey, hows it going? I've used simpleshop (http://forums.bukkit.org/threads/in...iconomy-shop-493-531.1663/page-15#post-374011)
    for a long time and the players on my server really like it. Unfortunately the developer abandoned it. Your shop is the closest I can find to his and I was wondering if you could add a feature he has to your shop. Basically the only thing yours doesn't do (from reading the description) is set it so players can only buy and sell certain items. Is it possible to do that?
     
  12. Offline

    Phate123

    @ats1080
    Hi,
    you can set up which items are to sale / buy in the config-file. In feature where are more features planned. Especially I will add the possibility to add items on the fly with commands. I must say, that SimpleShop was my inspiration. I checked it out and it wasn't working properly.
     
  13. Offline

    Kohle

    Is it possible for when a person buys a item, the money deducted from there account can be sent to another player? I really would love this.
     
  14. Offline

    One Epic QuaiI

    Could some one make a config with everything on it?
    I'm lazeh..
     
  15. Offline

    HandsUpFreak

    I think, it was better when the commands are only avaible at a specific location.
    That was be important for me.
     
  16. Offline

    ats1080

    @Phate123
    awesome. have you used simpleshop? like you said another thing i like was adding items in game with commands.
     
  17. Offline

    enilsss

    Loving this plugin. Wish it had permissions though. :(
     
  18. Offline

    Gamer_169

    No permissions :(
     
  19. Offline

    Phate123

    That wouldn't be a global shop. :)
     
  20. Offline

    enilsss

    Damage values aren't working too good: Ink sacks on my server are $12, and cocoa beans are $1250, but it counts both of them as ink sacks and they sell for (80 % of) 12.

    Did I mess up somewhere or is this a flaw with the plugin? :(
    Code:
    - 351:inksack:1:12.00:0
    - 351:rosered:1:3.25:1
    - 351:cactusgreen:1:12:2
    - 351:cocoabeans:1:1250:3
    - 351:Lapis:1:12.95:4
    - 351:purpledye:1:16:5
    - 351:cyandye:1:30:6
    - 351:lightgraydye:1:10:7
    - 351:graydye:1:10:8
    - 351:pinkdye:1:10:9
    - 351:limedye:1:35:10
    - 351:yellowdye:1:3.25:11
    - 351:aquadye:1:15:12
    - 351:magentadye:1:37.89:13
    - 351:orangedye:1:5:14
    - 351:bonemeal:1:5:15
     
  21. Offline

    Phate123

    @enilsss
    That was my fault. I didn't use the plugin in that way on my server, so I didn't thought about take care of the damage while selling. Update to Version 0.4 and it will work properly.
     
  22. Offline

    Keleus

    I'm getting an error stating "Error reading ShopItems.Wrong size of arguments in ShopItems" and then it says disabling global shop.

    Here is my config file and I don't know if its wrong or not, can anyone help me?
    Code:
    #GlobalShop 0.3 by Phate
    #Configuration File
    
    #Here the sale ratio is determined
    buysell: 0.5
    
    #Here the shops Item- and Pricelist is determined
    #This is how the items are defined:
    #- ItemID:ItemName:Amount:Price(:Damage/Color)
    ShopItems:
    - 2:grass:1:00.20
    - 3:dirt:1:00.15
    - 4:cobblestone:1:00.31
    - 6:saplings:1:00.25
    - 7:bedrock:1:500.00
    - 12:sand:1:00.15
    - 13:gravel:1:00.15
    - 14:GoldOre:1:3.00
    - 16:CoalOre:1:00.75
    - 15:IronOre:1:1.56
    - 17:wood:1:00.40
    - 18:leaves:1:00.78
    - 19:sponge:1:100.00
    - 20:glass:1:00.70
    - 21:lapislazuliore:1:1.00
    - 22:lapisblock:1:1.50
    - 23:dispenser:1:00.75
    - 24:sandstone:1:00.30
    - 25:noteblock:1:00.70
    - 27:poweredrail:1:18.25
    - 28:detectorrail:1:7.50
    - 30:cobweb:1:25.00
    - 31:tallgrass:1:25.00
    - 32:deadshrubs:1:25.00
    - 35:wool:1:00.40
    - 37:dandelion:1:00.45
    - 38:rose:1:00.50
    - 39:brownmushroom:1:00.40
    - 40:redmushroom:1:00.60
    - 41:goldblock:1:25.00
    - 42:ironblock:1:12.00
    - 45:brickblock:1:3.50
    - 46:TNT:1:45.00
    - 47:bookshelf:1:25.00
    - 48:mossycobblestone:1:00.78
    - 49:Obsidian:1:1.17
    - 50:torch:1:00.80
    - 51:fire:1:50.00
    - 52:mobspawner:1:10000
    - 53:woodenstairs:1:00.80
    - 54:chest:1:1.20
    - 56:diamondore:1:350.00
    - 57:diamondblock:1:3000.00
    - 58:craftingtable:1:00.45
    - 61:furnace:1:3.00
    - 65:ladder:1:00.70
    - 66:rail:1:6.50
    - 67:cobblestonestairs:1:1.20
    - 69:lever:1:00.45
    - 70:stonepressureplate:1:1.20
    - 72:woodenpressureplate:1:00.80
    - 73:redstoneore:1:2.00
    - 74:glowingredstoneore:1:15.00
    - 76:redstonetorch:1:00.80
    - 77:stonebutton:1:00.02
    - 78:snow:1:00.50
    - 79:ice:1:00.50
    - 80:snowblock:1:00.90
    - 81:cactus:1:1.01
    - 82:clayblock:1:2.90
    - 84:jukebox:1:375.00
    - 85:fence:1:00.60
    - 86:pumpkin:1:1.35
    - 87:Netherrack:1:00.22
    - 88:SoulSand:1:00.50
    - 89:Glowstone:1:1.10
    - 91:jackolantern:1:2.25
    - 96:trapdoor:1:00.85
    - 256:ironshovel:1:2.00
    - 257:ironpickaxe:1:7.00
    - 258:ironaxe:1:7.00
    - 259:flintandsteel:1:1.75
    - 260:apple:1:3.00
    - 261:bow:1:7.00
    - 262:arrow:1:1.25
    - 263:coal:1:00.78
    - 264:diamond:1:365.00
    - 265:iron:1:1.75
    - 266:gold:1:3.25
    - 267:ironsword:1:4.00
    - 268:woodensword:1:1.15
    - 269:woodenshovel:1:00.70
    - 270:woodenpickaxe:1:1.25
    - 271:woodenaxe:1:1.25
    - 272:stonesword:1:2.25
    - 273:stoneshovel:1:1.50
    - 274:stonepickaxe:1:2.75
    - 275:stoneaxe:1:2.75
    - 276:diamondsword:1:775.00
    - 277:diamondshovel:1:400.00
    - 278:diamondpickaxe:1:1150.00
    - 279:diamondaxe:1:1150.00
    - 280:stick:1:00.20
    - 281:bowl:1:00.70
    - 282:mushroomsoup:1:3.25
    - 283:goldsword:1:7.50
    - 284:goldshovel:1:3.75
    - 285:goldpickaxe:1:10.00
    - 286:goldaxe:1:10.00
    - 287:string:1:00.35
    - 288:feather:1:00.35
    - 289:gunpowder:1:8.00
    - 290:woodenhoe:1:1.15
    - 291:stonehoe:1:2.25
    - 292:ironhoe:1:4.00
    - 293:diamondhoe:1:775.00
    - 294:goldhoe:1:7.50
    - 295:seed:1:00.30
    - 296:wheat:1:00.90
    - 297:bread:1:3.25
    - 318:flint:1:00.65
    - 319:rawporkchop:1:2.00
    - 320:cookedporkchop:1:3.50
    - 321:painting:1:5.00
    - 322:goldenapple:1:25.00
    - 323:sign:1:1.85
    - 324:woodendoor:1:1.50
    - 325:bucket:1:5.00
    - 326:waterbucket:1:5.50
    - 327:lavabucket:1:15.00
    - 328:minecart:1:7.50
    - 329:saddle:1:50.00
    - 330:irondoor:1:8.00
    - 331:redstonedust:1:00.45
    - 332:snowball:1:00.20
    - 333:boat:1:2.25
    - 334:leather:1:00.35
    - 335:milk:1:7.00
    - 336:brick:1:1.00
    - 337:clay:1:00.70
    - 338:sugarcane:1:2.75
    - 339:paper:1:6.50
    - 340:book:1:10.00
    - 341:slimeball:1:00.65
    - 342:storageminecart:1:9.50
    - 343:poweredminecart:1:12.50
    - 344:egg:1:00.35
    - 345:compass:1:6.00
    - 346:fishingrod:1:2.00
    - 347:clock:1:15.00
    - 348:glowstonedust:1:00.35
    - 349:rawfish:1:2.00
    - 350:cookedfish: 3.25
    - 351:InkSac:1:00.60(:0)
    - 351:cocoabeans:1:3.00(:3)
    - 352:bone:1:00.50
    - 353:sugar:1:2.85
    - 354:cake:1:15.00
    - 355:bed:1:4.50
    - 356:redstonerepeater:1:1.15
    - 357:cookie:1:15.00
    - 358:map:1:65.00
     
  23. Offline

    Phate123

    Hi Keleus,
    I corrected your config.yml
    -You had an typingerror in the cookedfish line
    -and you wrote brackets around your damage/color and that's wrong. The brackets are indicating, that these arguments are not needed.

    Code:
    #GlobalShop 0.3 by Phate
    #Configuration File
    
    #Here the sale ratio is determined
    buysell: 0.5
    
    #Here the shops Item- and Pricelist is determined
    #This is how the items are defined:
    #- ItemID:ItemName:Amount:Price(:Damage/Color)
    ShopItems:
    - 2:grass:1:00.20
    - 3:dirt:1:00.15
    - 4:cobblestone:1:00.31
    - 6:saplings:1:00.25
    - 7:bedrock:1:500.00
    - 12:sand:1:00.15
    - 13:gravel:1:00.15
    - 14:GoldOre:1:3.00
    - 16:CoalOre:1:00.75
    - 15:IronOre:1:1.56
    - 17:wood:1:00.40
    - 18:leaves:1:00.78
    - 19:sponge:1:100.00
    - 20:glass:1:00.70
    - 21:lapislazuliore:1:1.00
    - 22:lapisblock:1:1.50
    - 23:dispenser:1:00.75
    - 24:sandstone:1:00.30
    - 25:noteblock:1:00.70
    - 27:poweredrail:1:18.25
    - 28:detectorrail:1:7.50
    - 30:cobweb:1:25.00
    - 31:tallgrass:1:25.00
    - 32:deadshrubs:1:25.00
    - 35:wool:1:00.40
    - 37:dandelion:1:00.45
    - 38:rose:1:00.50
    - 39:brownmushroom:1:00.40
    - 40:redmushroom:1:00.60
    - 41:goldblock:1:25.00
    - 42:ironblock:1:12.00
    - 45:brickblock:1:3.50
    - 46:TNT:1:45.00
    - 47:bookshelf:1:25.00
    - 48:mossycobblestone:1:00.78
    - 49:Obsidian:1:1.17
    - 50:torch:1:00.80
    - 51:fire:1:50.00
    - 52:mobspawner:1:10000
    - 53:woodenstairs:1:00.80
    - 54:chest:1:1.20
    - 56:diamondore:1:350.00
    - 57:diamondblock:1:3000.00
    - 58:craftingtable:1:00.45
    - 61:furnace:1:3.00
    - 65:ladder:1:00.70
    - 66:rail:1:6.50
    - 67:cobblestonestairs:1:1.20
    - 69:lever:1:00.45
    - 70:stonepressureplate:1:1.20
    - 72:woodenpressureplate:1:00.80
    - 73:redstoneore:1:2.00
    - 74:glowingredstoneore:1:15.00
    - 76:redstonetorch:1:00.80
    - 77:stonebutton:1:00.02
    - 78:snow:1:00.50
    - 79:ice:1:00.50
    - 80:snowblock:1:00.90
    - 81:cactus:1:1.01
    - 82:clayblock:1:2.90
    - 84:jukebox:1:375.00
    - 85:fence:1:00.60
    - 86:pumpkin:1:1.35
    - 87:Netherrack:1:00.22
    - 88:SoulSand:1:00.50
    - 89:Glowstone:1:1.10
    - 91:jackolantern:1:2.25
    - 96:trapdoor:1:00.85
    - 256:ironshovel:1:2.00
    - 257:ironpickaxe:1:7.00
    - 258:ironaxe:1:7.00
    - 259:flintandsteel:1:1.75
    - 260:apple:1:3.00
    - 261:bow:1:7.00
    - 262:arrow:1:1.25
    - 263:coal:1:00.78
    - 264:diamond:1:365.00
    - 265:iron:1:1.75
    - 266:gold:1:3.25
    - 267:ironsword:1:4.00
    - 268:woodensword:1:1.15
    - 269:woodenshovel:1:00.70
    - 270:woodenpickaxe:1:1.25
    - 271:woodenaxe:1:1.25
    - 272:stonesword:1:2.25
    - 273:stoneshovel:1:1.50
    - 274:stonepickaxe:1:2.75
    - 275:stoneaxe:1:2.75
    - 276:diamondsword:1:775.00
    - 277:diamondshovel:1:400.00
    - 278:diamondpickaxe:1:1150.00
    - 279:diamondaxe:1:1150.00
    - 280:stick:1:00.20
    - 281:bowl:1:00.70
    - 282:mushroomsoup:1:3.25
    - 283:goldsword:1:7.50
    - 284:goldshovel:1:3.75
    - 285:goldpickaxe:1:10.00
    - 286:goldaxe:1:10.00
    - 287:string:1:00.35
    - 288:feather:1:00.35
    - 289:gunpowder:1:8.00
    - 290:woodenhoe:1:1.15
    - 291:stonehoe:1:2.25
    - 292:ironhoe:1:4.00
    - 293:diamondhoe:1:775.00
    - 294:goldhoe:1:7.50
    - 295:seed:1:00.30
    - 296:wheat:1:00.90
    - 297:bread:1:3.25
    - 318:flint:1:00.65
    - 319:rawporkchop:1:2.00
    - 320:cookedporkchop:1:3.50
    - 321:painting:1:5.00
    - 322:goldenapple:1:25.00
    - 323:sign:1:1.85
    - 324:woodendoor:1:1.50
    - 325:bucket:1:5.00
    - 326:waterbucket:1:5.50
    - 327:lavabucket:1:15.00
    - 328:minecart:1:7.50
    - 329:saddle:1:50.00
    - 330:irondoor:1:8.00
    - 331:redstonedust:1:00.45
    - 332:snowball:1:00.20
    - 333:boat:1:2.25
    - 334:leather:1:00.35
    - 335:milk:1:7.00
    - 336:brick:1:1.00
    - 337:clay:1:00.70
    - 338:sugarcane:1:2.75
    - 339:paper:1:6.50
    - 340:book:1:10.00
    - 341:slimeball:1:00.65
    - 342:storageminecart:1:9.50
    - 343:poweredminecart:1:12.50
    - 344:egg:1:00.35
    - 345:compass:1:6.00
    - 346:fishingrod:1:2.00
    - 347:clock:1:15.00
    - 348:glowstonedust:1:00.35
    - 349:rawfish:1:2.00
    - 350:cookedfish:1:3.25
    - 351:InkSac:1:00.60:0
    - 351:cocoabeans:1:3.00:3
    - 352:bone:1:00.50
    - 353:sugar:1:2.85
    - 354:cake:1:15.00
    - 355:bed:1:4.50
    - 356:redstonerepeater:1:1.15
    - 357:cookie:1:15.00
    - 358:map:1:65.00
     
    Keleus likes this.
  24. Offline

    Keleus

    Thanks a lot :)
     
  25. Offline

    paul rushe

    I love this plugin! the best one I've saw in a long time :) Im just waiting for my provider/console to update from 0.3 to 0.5 . THANKS FOR MAKING THIS!!!
     
  26. Offline

    danielfdsilva

    Hi everyone, i have a problem with this plugin.
    I install it, it generates the config.yml file and when i restart the server it says "Error reading ShopItens. Your config.yml file is incorrect."
    The config file is the one created by default.

    thanks in advance :)
     
  27. Offline

    gamerslap

    Try this
    Code:
    #GlobalShop 0.5 by Phate
    #Configuration File
    
    #Here the sale ratio is determined
    buysell: 0.8
    
    #Here the shops Item- and Pricelist is determined
    #This is how the items are defined:
    #- ItemID:ItemName:Amount:Price(:Damage/Color)
    ShopItems:
    - 1:stone:64:10.00
    - 4:cobblestone:64:7.00
    - 22:lapis_lazuli_block:64:24.00
    - 35:white_wool:64:14.00:0
    - 35:orange_wool:64:16.00:1
    - 35:magenta_wool:64:16.00:2
    - 35:light_blue_wool:64:16.00:3
    - 35:yellow_wool:64:16.00:4
    - 35:light_green_wool:64:16.00:5
    - 35:pink_wool:64:16.00:6
    - 35:gray_wool:64:16.00:7
    - 35:light_gray_wool:64:16.00:8
    - 35:cyan_wool:64:16.00:9
    - 35:purple_wool:64:16.00:10
    - 35:blue_wool:64:16.00:11
    - 35:brown_wool:64:16.00:12
    - 35:dark_green_wool:64:16.00:13
    - 35:red_wool:64:16.00:14
    - 35:black_wool:64:16.00:15
    - 256:iron_shovel:1:60.00
    - 257:iron_pickaxe:1:60.00
    - 258:iron_axe:1:60.00
    - 263:coal:10:9.80
    - 265:iron_ingot:10:12.50
    - 266:gold_ingot:10:19:50
    - 267:iron_sword:1:60.00
    - 276:diamond_sword:1:160.00
    - 277:diamond_shovel:1:160.00
    - 278:diamond_pickaxe:1:160.00
    - 279:diamond_axe:1:160.00
    - 331:redstone:10:13.00
    - 356:redstone_repeater:1:4.99
    
    it is the defualt config fix
     
  28. Offline

    danielfdsilva

    Thanks :)
    Now i see, in the default config there are commas instead of dot in the iten price.
     
  29. Offline

    gamerslap

    no problem...its hard to notice but easy to fix so once I sw then I fixed it for my server
     
  30. Offline

    Phate123

    Thanks for the report. I never used the default config. It will be changed in next version.

    At first my intend was to use comma seperated values as this is my native. But I changed for internatioal purposes. But I forgot to change the default config. Sry guys.
     

Share This Page