#=========Sections=========##bank - The total amount of money the shop currently has. set to -1 for infinite.#vars - Here you can define custom variables that can be used later when defining prices##items- Here you define the items in the shop. '#-#' is the id of each item.# half life - Every time the stock increases by this number, the prices are halved. set to 0 to disable.# name - This is the name of the item. This will be displayed in shop messages.# name-plural - This is the same as name, except plural (more than one)# buy - This is the price for someone to buy an item from the shop. set to -1 to disable.# sell - This is the amount of money players get for selling an item to the shop. set to -1 to disable.# stock - This is the number of items the shop has in stock. set to -1 for infinite.##=========Referencing other items' prices=========##You can reference other items' prices with a special notation. Here are some examples:##This will return 100 because 50% of 200 is 100:# 50%200.0##This will return 80 because 25% of 40 is 10, and 10 plus 70 is 80:# 25%40 + 70##This will return the sum of 'vars.random-var' and 123:# vars.random-var + 123##This will return half the cost to buy the item 23-0:# 50%23-0.buy##Other things to know:# This notation is case sensitive (so 'AsDf' is not the same as 'asdf')# Spaces don't count as anything (so '1 + 2' is the same as '1+2')# You can make a value negative by putting '-100%vars.random-var'##If you have any questions about how this works, please comment at:#http://dev.bukkit.org/server-mods/finite-global-shop/bank:1000.00vars:custom-variable:123.45another-custom-variable:3.14items:1-0:half-life:500name:Stonename-plural:Stonebuy:0.50sell:0.40stock:03-0:half-life:500name:Dirtname-plural:Dirtbuy:100%vars.custom-variablesell:50%buy+100%vars.another-custom-variablestock:05-1:half-life:500name:SpruceWoodPlankname-plural:SpruceWoodPlanksbuy:200%3-0.buysell:75%buystock:0
Having an issue when trying to buy/sell stone Everything else is working fine..
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) [?:?]
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
-
View User Profile
-
Send Message
Posted Jan 28, 2013posible to add all the items via a command? or anything?
-
View User Profile
-
Send Message
Posted Aug 30, 2013@jakesta14
/sell
-
View User Profile
-
Send Message
Posted Jan 8, 2014@Kepler_
Having an issue when trying to buy/sell stone Everything else is working fine..
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) [?:?]