Coder Social home page Coder Social logo

economys's Introduction

#EconomyS

For PocketMine-MP 1.4 Core-Rewrite

Feel free to make a pull request!

EconomyAPI commands

Default command Parameter Description Default Permission
/mymoney Shows your money All
/mydebt Shows your debt All
/takedebt <money> Borrows $<money> from plugin All
/returndebt <money> Returns $<money> to plugin All
/topmoney <page> Shows server's top money All
/moneysave Saves data to your hardware Console
/moneyload Loads data from your hardware Console
/setmoney <player> <money> Sets <player>'s money to $<money> OP Console
/economys Shows plugin which are using EconomyAPI All
/givemoney <player> <money> Gives $<money> <player> OP Console
/takemoney <player> <money> Takes $<money> from <player> OP Console
/seemoney <player> Shows <player>'s money All
/bank deposit <money> Deposit $<money> to your account All
/bank withdraw <money> Withdraw $<money> from your account All
/bank mymoney Shows your money from your account All
/mystatus Shows your money status All
/bankadmin takemoney <player> <money> Takes $<money> from <player>'s account OP Console
/bankadmin givemoney <player> <money> Gives $<money> for <player>'s account OP Console

EconomyAPI configuration

File : plugins/EconomyAPI/economy.properties

Key Description Available Value Default Value
show-using-economy Changes server name to [EconomyS] SERVER NAME on : Change off : Don't change on off on
once-debt-limit Limits borrowing debt at once All integers 100
debt-limit Limits available debt All integers 500
add-op-at-rank Shows OP at top money rank on : Shows OP off : Don't shows OP on off off
default-money Sets default money All integers 1000
default-debt Sets default debt All integers 0
time-for-increase-debt Sets how long will take for debt increase All integers 10
percent-of-increase-debt Sets percentage of increasing debt All integers 5
default-bank-money Sets default bank money All integers 0
time-for-increase-money Sets how long will take for credit increase All integers 10
bank-increase=money-rate Sets percentage of increasing credit All integers 5
debug Money debugging preferences on : yes off : no on off on

EconomyShop configuration

File : plugins/EconomyShop/shop.properties

Key Description Available Value Default Value
handler-priority The priority of handling shop touches Integer 5

How to create shop in EconomyShop

File : plugins/EconomyShop/ShopSign.yml

This documentation is focused on default configuration.

Line1 Line2 Line3 Line4
shop <price> <item id or name> <amount>

You must write all the parameters integer except for line 3. The shop will created if the parameters are valid.

Sell Center in EconomySell can be created in same way. And also Player's Shop in EconomyPShop

EconomyAirport and EconomyAirportPlus

File : %CONFIG_PATH%/DepartureSign.yml File : %CONFIG_PATH%/ArrivalSign.yml File : %CONFIG_PATH%/Identifier.yml

This documentation is focused on default configuration.

Line1 Line2 Line3 Line4
`<international airport>` `<arrival departure>`

Example:

Line1: airport Line2: departure Line3: 10 Line4: onebone

Takes $10 to go to onebone airport

Line1: airport Line2: arrival Line3: onebone Line4:

Arrival sign : onebone airport

If there's no target airport to fly, it aborts riding a flight.

For Developers

You can access to EconomyAPI by using EconomyAPI::getInstance()

example) EconomyAPI::getInstance()->addMoney($player_instance, $amount);

economys's People

Contributors

onebone avatar bamuel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.