1- # CurrencyAPI | PocketMine-MP
2- [ ![ ] ( https://poggit.pmmp.io/shield.state/CurrencyAPI )] ( https://poggit.pmmp.io/p/CurrencyAPI )
1+ # CurrencyAPI | PocketMine-MP
2+ [ ![ ] ( https://poggit.pmmp.io/shield.state/CurrencyAPI )] ( https://poggit.pmmp.io/p/CurrencyAPI )
33
44Two-way economic A.P.I. to create currencies on the one hand, and on the other the usual economic plugin PocketMine-MP 5
55[ README RU] ( README_RU.md )
@@ -10,6 +10,7 @@ Two-way economic A.P.I. to create currencies on the one hand, and on the other t
1010 - [x] Currency buy/sell limit
1111 - [x] Saving player balance to SQL database
1212 - [x] Saving currency price to SQL database
13+ - [ ] Scoredoard placenoder
1314
1415# For create currency
1516Main:
@@ -53,23 +54,23 @@ class YourCurrency implements Currency {
5354 public function sellLimit(): float { return PHP_float_MAX; }
5455}
5556```
56- # For use economic side:
57+ # For use economic side:
5758Add to balance:
5859``` php
59- $player->add($currencyName, $count);
60+ $player->add($currencyName, $count);
6061```
61- For remove from balance:
62+ For remove from balance:
6263``` php
63- $player->remove($currencyName, $count);
64- ```
64+ $player->remove($currencyName, $count);
65+ ```
6566For set balance:
6667``` php
6768$player->set($currencyName, $count);
68- ```
69- For complete transaction:
69+ ```
70+ For complete transaction:
7071``` php
71- $player->transaction($currencyName, $count, $player);
72- ```
72+ $player->transaction($currencyName, $count, $player);
73+ ```
7374For get balance
7475``` php
7576$count = $player->get($currencyName);
@@ -83,3 +84,4 @@ $count = $player->get($currencyName);
8384 - add <count: float> [ player: string] operators only
8485 - remove <count: float> [ player: string] operators only
8586 - transaction <count: float> <player: string> all players <br >
87+
0 commit comments