GlobalMarket
GlobalMarket is a global market system. It allows players to buy and sell items via a convenient in-game interface. It's similar WoW's Auction House or Runescape's Grand Exchange. I created this plugin awhile ago (back in the days of WebAuction, it's what inspired me) for private use, but I've decided to release it to the public. This plugin requires Vault and ProtocolLib, other than that, just drop it in plugins (make sure you have Vault plus a supported economy plugin installed) and start trading!
Features
- Players can put any item up for sale using a dead simple in-game GUI system (see below)
- Uses ProtocolLib for proper item serialization that supports Bukkit, Spigot, and Cauldron
- Real time interface, all trades show up immediately without having to 'refresh' or close the GUI
- No maintenance or admin interaction required
Mailbox system that allows you to set up market areas or auction houses(not currently in 2.0.0)A built in price guide that compiles average prices from previous transactions(not currently in 2.0.0)
Latest Dev Build
Development builds of this project can be acquired at the following continuous integration server.
These builds have not been approved by the BukkitDev staff. Use them at your own risk.
http://build.survivorserver.com/job/GlobalMarket%202.0.0/
Changelog
Usage
- The Interface
- This is a display of all current listings, you click an item to buy it. You can shift+click to remove a listing if you own it, or if you have the "globalmarket.listingsadmin" permission. Listings automatically expire after 1 week (configurable). You can use
/marketto access the menu.

- Stock
- When you purchase an item it will be sent to your stock. Stock is an entirely optional system but is suggested to be enabled, as disabling it will disable certain other features like
/market send. The stock system can hold a configurable amount of stacks of items in a configurable amount of slots. Once you place an item in your stock, you can list it to be sold to other players. Players can also send items to other players' stock via/market sendif they have the "globalmarket.command.send" permission.

- Server Listings
- You can create 'infinite listings' that do not expire and can't be bought out. Create them with
/market createinf <price> <[amount]>. There's a dedicated section to server listings in the Market menu. You'll need the "globalmarket.command.createserverlisting" permission to do this. Or you can disable this system all-together in the config.
Commands
| Command | Description | Permission |
|---|---|---|
| /market | Opens the Market menu. | globalmarket.use |
| /market ? | Shows command help. | <no permission> |
| /market send <player> <[amount]> | Sends the item you're holding to <player>'s stock. Amount is optional. | globalmarket.command.send |
| /market createinf <price> <[amount]> | Creates a server listing. Amount is optional. | globalmarket.command.createserverlisting |
| /market reload | Reloads config.yml | globalmarket.command.reload |
Permissions
- globalmarket.use - base permission, required to use /market
- globalmarket.listingsadmin - ability to remove all listings
- globalmarket.command.send - ability to use /market send
- globalmarket.command.createserverlisting - ability to use /market createinf
- globalmarket.command.reload - ability to use /market reload
Config
All config values have comments that explain what they do in config.yml, how convenient for me!
If you wish to blacklist items from being used on the Market, there is blacklist.json. You can add material values with meta values:
- APPLE:0 - blacklist apples
- INK_SAC:-1 - blacklist all dies
If you're running Cauldron, you can do things like:
- oredict:ingotSteel - blacklist any item with an OreDictionary value matching ingotSteel
- extracells:storage.component:-1 - blacklist all ExtraCells storage cells
Locale
Virtually every string in the plugin is editable via the "en_US.json" file, inside the plugin's JAR. It's pretty straightforward to edit. Don't replace or edit the %s or %1$s's, these are variables. For example, "Item sold: %s" would appear as "Item sold: Cobblestone" in-game. You can add/edit colors by typing & plus a color code. So light green (the color code is a) would be &a. You can find color codes here: http://ess.khhq.net/mc/
You can also create an entirely different language set, name it something like ch_CN.json, stick it in the server's JAR, and change the appropriate config value in config.yml to use it.
Source
https://github.com/Dasfaust/GlobalMarket
That's all for now. Sorry if things are unclear, I'll be updating this page with more information periodically. If you're stuck just add a reply and I'll do my best to help!
-
View User Profile
-
Send Message
Posted Nov 22, 2013Hey are you still supporting the local market plugin addon? if so can you tell me how it works? like how to set it up
-
View User Profile
-
Send Message
Posted Nov 22, 2013@xdasfaust
Thank you and you're welcome :3
-
View User Profile
-
Send Message
Posted Nov 11, 2013@ModTaras
It pulls your currency name from Vault, so it's configurable. And thanks!
-
View User Profile
-
Send Message
Posted Nov 10, 2013Is the name of the currency (Gold) configurable? If not, can it be? <3
Congrats on 8k downloads!
-
View User Profile
-
Send Message
Posted Nov 9, 2013@mumblerit
It does close any open interfaces when it's disabled. Do you know if the plugin says something like "Processing DB queue" when you shut the server down/disable the plugin?
-
View User Profile
-
Send Message
Posted Nov 9, 2013Listing at item within ~30 seconds of server restart, players list item then return to inventory, on restart item is still on market. Unsure how to work around this, perhaps the inventory screen could be closed as the plugin shuts down?
dev builds
-
View User Profile
-
Send Message
Posted Nov 4, 2013@rhisis1988
It's on the to-do list.
@diannetea
Hmm I'm still not sure why that happens but you could try the most recent dev build, the new version is at a pretty stable point (dare I say more stable than the current release, haha.) The storage system has been rewritten and I know for a fact items are saved as UTF-8 in the database, so in theory it should clear this up. It won't fix items already affected by the bug, though.
-
View User Profile
-
Send Message
Posted Nov 2, 2013@xdasfaust
I've always used Notepad+ + and it looks like my default encoding was UTF8 without BOM. I've tried the other encodings as well and it still does not work.
This is a sample item (from the craftarrows plugin):
and this is what happens after the server starts:
-
View User Profile
-
Send Message
Posted Oct 30, 2013thanks xdasfaust,
I've also considered the following, as of current, players have no way of creating a buy order, would this be possible?
-
View User Profile
-
Send Message
Posted Oct 30, 2013@xdasfaust I love thise plugin <3 When my server opens i promise i will give you a donation!
-
View User Profile
-
Send Message
Posted Oct 29, 2013@diannetea
Hmm sounds like an issue with the file's encoding. While the server's off, try to open and save all of the .yml files in the GlobalMarket folder with Notepad+ + and convert their encoding to UTF8 (or 'UTF8 without BOM' if that doesn't work. Maybe ANSI if you're using Windows)
@rhisis1988
I will make that an option before the next release.
-
View User Profile
-
Send Message
Posted Oct 29, 2013Items with colored titles are losing their custom colorings upon a server restart, which breaks them. I am using dev build 1135 of Spigot, and v1.2.2 of Global Market
-
View User Profile
-
Send Message
Posted Oct 28, 2013Would it be possible to have Infinite items always on top in order of creation?
-
View User Profile
-
Send Message
Posted Oct 26, 2013I just wanted to let you know your color codes are broken. It all looks like
[?aMarket?f]
I don't know if there is a conflict, but if there is my guess would be LiveChat.
-
View User Profile
-
Send Message
Posted Oct 24, 2013@piritacraft
Check the description under Usage, you can create infinite listings with
/market create <price> -inf(needs globalmarket.infinitelistings permission if you are on 1.2.2, or globalmarket.infinite if you are using a dev build)-
View User Profile
-
Send Message
Posted Oct 24, 2013Suggestion: Admin sell some items with unlimited amount.
-
View User Profile
-
Send Message
Posted Oct 23, 2013@xdasfaust
PM Sent.
-
View User Profile
-
Send Message
Posted Oct 22, 2013Very Very cool plugins thank you very much =)
-
View User Profile
-
Send Message
Posted Oct 21, 2013@Xxswordcross
No, it can't save to disk. Look for an error on server startup and post it here.
@Tunix2
Yep! Working on one right now. PM me if you want any details.
-
View User Profile
-
Send Message
Posted Oct 21, 2013Any plans for a web interface?