Finite Global Shop
Finite Global Shop
About Finite Global Shop
Finite Global Shop (FGS) is a simple plugin that allows players on a server to easily buy and sell items. The goal of FGS is to have a shop system where there is a certain amount of items that can be bought, preventing extra items from being spawned into the game.
Dependencies
- Vault
- Java 6 or 7
Commands
- /buy - Buy items from the global shop
- /sell - Sell items to the global shop
- /shop - Access to all shop commands
- /fgs - Access to all admin commands
Permissions
- fgs.shop - Allows access to the /shop command
- fgs.shop.buy - Allows players to buy from the shop
- fgs.shop.sell - Allows players to sell to the shop
- fgs.shop.info - Allows players to get info on an item
- fgs.notify.buy - Notifies when a player buys an item from the shop
- fgs.notify.sell - Notifies when a player sells an item to the shop
- fgs.admin - Gives access to shop admin commands
- fgs.admin.reload - Allows admins to reload the plugin
- fgs.admin.update - Allows admins to download an update
- fgs.admin.add - Allows admins to add items to the shop
- fgs.admin.remove - Allows admins to remove items from the shop
- fgs.admin.get.bank - Allows admins to check the amount of money on the bank
- fgs.admin.get.depamount - Allows admins to get the depreciation amount for an item
- fgs.admin.get.deppecent - Allows admins to get the depreciation percent for an item
- fgs.admin.get.name - Allows admins to get the names of an item
- fgs.admin.get.buy - Allows admins to get the buy price of an item
- fgs.admin.get.sell - Allows admins to get the sell price of an item
- fgs.admin.get.stock - Allows admins to get the stock of an item
- fgs.admin.set.bank - Allows admins to change the money in the bank
- fgs.admin.set.depamount - Allows admins to change the depreciation amount of an item
- fgs.admin.set.deppecent - Allows admins to change the depreciation percent of an item
- fgs.admin.set.name - Allows admins to change the names of an item
- fgs.admin.set.buy - Allows admins to change the buy price of an item
- fgs.admin.set.sell - Allows admins to change the sell of an item
- fgs.admin.set.stock - Allows admins to change the stock of an item
Plugin Configuration
logTransactions: false autoUpdate: enabled: true checkInterval-Mins: 30 currencyDecimalPlaces: 2 addDespawningItemsToShop: false
- log-transactions: If true, all shop transactions will be recorded in the transactions.txt file
- autoUpdate.enabled: If true, the plugin will update when there is an update is available
- autoUpdate.checkInterval-Mins: How often the plugin should check for updates in minutes
- addDespawningItemsToShop: If true, despawning items will be added to the shop
Shop Configuration
The shop configuration (shop.yml) allows simple shop setup. Here you put the amount of money the shop has, the price to buy/sell specific items in the shop, the amount of each item in the shop, and the names of the items.
bank: 1000.00 vars: {} items: 3-0: depreciation: amount: 1 percent: 0.5 name: Dirt name-plural: Dirt buy: 5 sell: 50%buy stock: 0 5-1: depreciation: amount: 1 percent: 0.5 name: Spruce Wood Plank name-plural: Spruce Wood Planks buy: 200%3-0.buy sell: 75%buy stock: 0
Idea list
- Add a command to get a list of items in the shop
- Add the ability to have multiple shops (per-world shops?)
- Get more ideas from you :D
No matter how I add fgs.admin to my pex file I still dont have the ability to access it.
@Kepler_
I am having an issue when buy/sell stone...
me.bw.finiteglobalshop.FiniteGlobalShop.onCommand(FiniteGlobalShop.java:124) [?:?] 08.01 22:59:06 [Server] INFO at me.bw.finiteglobalshop.Commands.onCommand(Commands.java:43) [?:?] 08.01 22:59:06 [Server] INFO at me.bw.finiteglobalshop.Commands.buyCommand(Commands.java:102) [?:?]
Here is stone config:
1-0: name: Stone Block name-plural: Stone Blocks buy: 4-0 + 12.5%263-0.buy sell: 50%buy stock: 1 depreciation: amount: 100 percent: 0.5
Can any prices be based off of the current price of an item due to depreciation? I want the price of Iron items based off of the price of Iron Ingots, but if I do the buy price of ironlegs as
700%265-0.buy the price doesn't seem to change with the current price of iron ingots.
Also, are you willing to share the formula you are using to calculate depreciation? I remember the old version had half lives, which I had kind of figured out, but it would be nice to know as I'm setting this up for a new server.
Thanks for the great plugin!
@piritacraft
Can you explain a bit more? I don't understand what you want me to add.
make a options to use all items on shop, so can be compatible with modpack server
@blackhole883
Yeah that is an error. I'll try to fix it when I have some free time. Thanks for reporting it!
im using bpermissions and no matter what i do the server wont give me fgs.admin is this a known bug?
Fixed the last bug, for some reason i had to add it through ingame commands,
There seems to be an error if someone doesnt enter a number when they are buying something
@1Achmed1
There's not much to take screenshots of. It's just commands.
Screenshots.
b30 has been uploaded and should be downloadable in the next few days after bukkitdev approves it. If you have auto update on, it will update automatically once it's downloadable. If you know how to download it early, please don't. On the off chance that the plugin doesn't get approved or I need to reupload, you'll have a plugin that wasn't meant to be released or that may have major flaws. Thanks!
Also, if anyone wants to translate a language file or two, then feel free. I'll upload the file here for others to use. :D
Brilliant. Definitely using this :)
OK guys here is my shop.yml. Contains most of the items and item names including shortened versions of item names and other name varients. eg. cobblestone/cobble, obsidian/obby, rose/redflower, oakwoodenplank/oakplank etc.
Some items may be missing but I got most of them.
Shop.yml Pastebin
NOTE:- Some items have stock values above 0. If you want 0 stock you will have to change Stock: <> to 0. Does not include 1.5 items.