Economy plugin for EndStone.Theoretically supports multiple platforms (not tested).
Welcome to the submission of issues! Unless the endstone program is retired from history, I'll keep it updated!
I used some radical settings regarding file reading, but will refine them later.
- View your own money
/economy show
- View online players money(Only OP)
/economy show <playerName>
- Check out the money charts(TODO)
/economy top
- Transferring money to the target online player
/economy pay <playerName> <positiveNumber>
-Increase the amount of money of the target online player
/economy add <playerName> <positiveNumber>
- Reduce the amount of money of the target online player
/economy reduce <playerName> <positiveNumber>
- Setting the target online player's money
/economy set <playerName> <positiveNumber>
- Ordinary Player Permission Command(You can use the pay|top|show parameter)
economy.use.base
- Permissions represent the enumeration parameters that can be used
economy.command.show
economy.command.top
economy.command.pay
- The following are used by administrators
economy.command.add
economy.command.reduce
economy.command.set
economy.command.show.others
Note:I am waiting for a plugin like luckperms before you can configure these permissions. Otherwise, you can only change it from inside the plugin
Waiting for endstone to update the interface...
extern "C" __declspec(dllexport) int getPlayerMoney(const char* uuid){
jsonHelper jsonHelper;
try {
return jsonHelper.getPlayerMoney(uuid);
}catch (const std::runtime_error& e){
return -1;
}
}
extern "C" __declspec(dllexport) bool addPlayerMoney(const char* uuid,int& money){
jsonHelper jsonHelper;
try {
jsonHelper.addPlayerMoney(uuid, money);
return true;
}catch (const std::runtime_error& e){
return false;
}
}
extern "C" __declspec(dllexport) bool setPlayerMoney(const char* uuid,const int& money){
jsonHelper jsonHelper;
try {
jsonHelper.setPlayerMoney(uuid, money);
return true;
}catch (const std::runtime_error& e){
return false;
}
}
- 实现配置文件里的功能
- 控制台操作命令
- 内存操作(很快)
- 试图再封装一次提供给py的接口并兼容部分py插件
- 使用持久层框架支持关系型数据库(看情况)
- 实现实体货币/支持多种货币共存(看情况)
- Mcayear
- mdx