GlobalShop
A simple global shop which is used through commands.
To use GlobalShop you must install one of the following Economy plugins:
- iConomy 4,5 or 6
- BosEconomy 6 or 7
- Essentials Economy 2.2.17+
- MultiCurrency
The first found Economy plugin is used. Economy functions are used through Nijikokun's Register API which is implemented in GlobalShop.
Globalshop v0.8 now supports (and requires) Vault
Features
- Shop that can be accessed from everywhere.
- 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.
- 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 re-configuring the aliases in plugin.yml HowTo.
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
Commands
- /price (name|id) -> Show the price you must pay to buy name|id
- /buy (name|id) [amount] -> Buy name|id (with optional amount)
- /checksell -> Shows the money you would get for the item you are holding
- /sell -> Sells the item you are holding
- /sell <quantity> -> (v0.8) Sell a given quantity of the item held (only applies to stack in hand)
- /sell all -> (v0.8) Sell all items of the same type throughout inventory
- /shop reload -> Reloads the config of GlobalShop
Configuration
At moment you must setup all prices in the config file. This is explained here: Configuration
Planned Features
- Setting up prices with commands
- Writeout of a HTML-File where all prices can be viewed
Changelog
0.91
- Fix: disallow selling in Creative mode
- Add: Metrics support (see http://mcstats.org/learn-more/ for more info)
0.9 (Zarius)
- Fix: non-stackable items no longer stack when buying multiple
- Added: now checks for available inventory space (so you don't waste money if your purchase doesn't fit).
0.8 (Zarius)
- Support for Vault
- Added /sell <quantity> (from current held stack only)
- Added /sell all (sells all of the same item from your inventory)
0.7b2 (modifications by Zarius)
- fix for new Bukkit Version
- code cleanup
- start of coding for buy/sell with exp (doesn't work yet)
GlobalShop uses Metrics for anonymous usage stats (learn more). From v0.91 only.
@codewow
That should work but I haven't tested it specifically. If I get time I'll see if I can fix that.
Alright, new question. Why does using something like 44:smoothslab(type):1:10:3 not work? I can only buy 44 and not 44:3?
Forget this comment... I was an idiot and had all my permissions in the Inheritance spot and not under permissions... UGHHH >.>
Exploit:
Get a prot 4 chestplate have a friend hit you 1 time ./buy diamondchestplate 64 put 64 chestplates in first slot of anvil place prot 4 in the next slot get 10 lvls suddenly full stack of prot 4
@boushwa
Either will work.
Pardon me for blowing up the comments, this is my last one. For similar items, such as Oak Planks, Spruce Planks, Birch Planks, etc... I configured each item like this:
- 126:OakPlank:1:10.00:0 - 126:SprucePlank:1:15.00:1
The final digit on each line being the "type" of plank it is. Is this the correct format? If so, what /buy command do I enter when buying this using the item id?
Thanks,
Boushwa
@boushwa
Actually, the in-game reload command didn't update my changes. Once I restarted my server, the changes took. I guess it isn't a big deal but I won't want to restart my server every time I make an update to my shop items. :(
Plugin works fine and is easy to set up. Just one minor issue perhaps you could address here and tell me if I'm missing something or what:
Using the default config, I can buy 64 stone for $10. In the config, I changed the 64 to 1 so that I can buy 1 stone for $10. I saved, uploaded the config, reloaded the plugin, and when I go to buy stone it still sells me 64 even though the config has 1 where the 64 used to be.
Is this a bug of some sort?
My goal is to punch in whatever qty I want when entering the /buy command. For example, /buy stone 27 because I just want 27. Is there currently a way to allow for flexible quantities?
Thanks,
Boushwa
@TheCreamyHippie
Sounds like an error in the config file - can you check to see if there's an error message at startup in your server.log file?
I cant do any other commands like /help or /bal any of them PLEASE HELP
I just got done doing all of the config prices and when I logged on the only commands I could do was global shop. Before I got the prices they were working. Please help
@yesiamquitesmall
Yes, definitely supports Gringotts (via Vault) in the latest version (0.8).
@Wizardo367
Glad you like it :) That buy/sell only should be fairly easy to do however I'm reluctant to commit too much time to GlobalShop however unless Zephim (the original owner) is happy for me to take over the project however I haven't heard from him since last year.
I've sent him a message but if I don't get a response I might consider adding new features as a remade plugin eventually (quite busy with my other plugins at the moment).
Hi Zarius I am a big fan of your plugins since they are so useful (I am looking forward to OtherMobs) I was just wondering does this plugin support gringotts?
Many thanks
Awesome plugin, can't wait for the HTML feature :P, btw another feature you could add is to only allow certain items to be bought or sold but not both by adding a parameter in the config.
Example
Putting :s at the end of an item makes it sell-only and putting :b at the end of an item makes it buy-only.
@FxCupCake
It's not meant to be, the plugin just allows user's to buy and sell in-game items using in-game money.
@ZariusT
GlobalShop isn't compatible with buycraft. anyway to fix it?
@ZariusT
ugh, sorry my mistake, there was an error in the config. thank you for this plugin :') i fixed it. 10/10
@ZariusT
i just cant buy anything... i get no errors o.o
@iamcion
What in particular isn't working? errors in startup or can't buy anything?
@ZariusT
my god, im so sorry for the bother, i love this plugin so much. but yet once again its not working :CCCC
heres my config http://pastebin.com/eEBVjb0w