main/Economy

Economy

Description


The Economy feature is small and lightweight but highly customisable, players have their own wallet and can make payments. Currently the Economy feature is very small and is only used by the Shop feature, but soon more is coming!


Commands and Permissions


Commands

/wallet <player> <+|-|=|> <amount>
CommandEffectPermission
/walletShows information about your walletAEco.economy.check
/wallet <player>Shows information about a player's walletAEco.economy.checkother
/wallet <player> <+,-,=> <amount>Add, subtract or set a player's wallet to a specific amountAEco.economy.change



/sell <amount>
CommandEffectPermission
/sellShows the price of the item in your handAEco.economy.sell_to_server
/sell <amount>Sells the item in your hand to the server <amount> timesAEco.economy.sell_to_server



Price configuration


In the prices.dsp file you can store default prices that are used when a player sells an item to the server. i'ts pretty simple, every line of the file may contain one item and one price separated by a comma like this:

54,100

The above would mean: 54 = chest and 100 = the price. So players can sell chests for the price of 100 each. Now a few more examples.

35,15
86,1000
3,5
4,10
Wool,15
Pumpkin,1000
Dirt,5
Cobblestone,10

Hope you understand it, don't know an item id? Take a look at the minecraft wiki! Or download the default prices file (Minecraft 1.1): prices.psd


How to use


Wallets: When someone tries to buy something and he/she does not have a wallet one will be created. New created wallets contain the default cash value entered in the config file.

Sell command: When the sell command is enabled players can sell items to the consol (server). If a player tries to sell an item that does not have a default price set in the prices.dsp file, the sell price will be the price set in the configuration file. But only if the enable_sell_when_no_sell_price_found property (in the configuration file) equals true, otherwise the item will not be sold.


Comments

Posts Quoted:
Reply
Clear All Quotes