Newest Version | Update Date | Update Info |
---|---|---|
3.3 | 2018/08/17 | Fix bugs; Automatic language selecting |
This plugin is like EcocomyAPI.
We have wallet, bank(with interest), database(Using MoeDB) and so on...
While EconomyAPI is used in global, Money is used in China, generally.
So, many plugins made by Chinese depended on this.
Emm, Of cause you don't all like this plugin.
So, I made adapter for EconomyAPI and Money
With the adapter, you can use the api of EconomyAPI to access Money, and vice versa.
That means, you can use both plugins depend on Money or EconomyAPI, without installing two economy plugin.
- Multi languages(Chinese, English), customizable.
- Multi database (Now support Redis and Yaml)(Using MoeDB).
- Custom commands
- Two currency types, customizable type name.
Too many to introduce.
Please check more in Command.yml
.
- /moneyselectlang <chs|eng|cht> Change language type.(Can't modify in command.yml)
- /coin, /point. Gets wallet ballance.
- /paycoin, /paypoint. Pays to someone.
- /givecoin, /givepoint. (OP)Gives someone.
- /coinlist, /pointlist. See list
- /banksave, /banktake, /bank. Bank
money.command.{command}
{command} represents "coin", "pay", "give", etc.
Learn about money.CurrencyType
Preview:
package money;
public enum CurrencyType{
FIRST, //coin
SECOND, //point
}
Look up all APIs in MoneyAPI Preview general uses:
package money;
public interface MoneyAPI{
static Money getInstance();
float getMoney(Player player, CurrencyType type);
boolean setMoney(Player player, CurrencyType type, float amount);
boolean addMoney(Player player, CurrencyType type, float amount);
boolean reduceMoney(Player player, CurrencyType type, float amount);
float getBank(Player player);
boolean setBank(Player player);
boolean addBank(Player player, float amount);
boolean reduceBank(Player player, float amount);
boolean createAccount(Player player, float money1, float money2, float bank);
}
- Database support: MoeDB(GitHub)
- Add
repository
inrepositories
<repository> <id>him188-public</id> <url>http://repo.him188.moe:8081/repository/public/</url> </repository>
- Add
dependency
independencies
<dependency> <groupId>money</groupId> <artifactId>money</artifactId> <version>LATEST</version> </dependency>
- Don't forget to add
depend
intoplugin.yml
depend: - Money
-
Run command
mvn clean package
-
Find jar-file at
target/