Skip to content

Commit 6039c0e

Browse files
committed
Change README.md
1 parent c75edb0 commit 6039c0e

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,38 @@ $api = SecureCoinAPI::getInstance();
2828

2929
お金を追加
3030

31-
https://github.com/SpaceServerDev/SecureCoinAPI/blob/77ca5fba356d52c6a3513dbd35c1ef93a7999359/src/space/yurisi/SecureCoinAPI/command/addcoinCommand.php#L44-L50
31+
https://github.com/SpaceServerDev/SecureCoinAPI/blob/master/src/space/yurisi/SecureCoinAPI/command/takecoinCommand.php#L44-L50
3232
```php
3333
use space\yurisi\SecureCoinAPI\SecureCoinAPI;
3434
use space\yurisi\SecureCoinAPI\History
3535

3636
$history = new History(
3737
$player->getName(),
3838
null,
39-
"増やすお金",
39+
増やすお金,
4040
"プラグイン名",
4141
"詳細(省略可)"
42-
)
42+
);
4343
$api->addMoney($history);
4444
```
4545

46+
お金を減らす
47+
48+
https://github.com/SpaceServerDev/SecureCoinAPI/blob/master/src/space/yurisi/SecureCoinAPI/command/takecoinCommand.php#L43-L49
49+
```php
50+
use space\yurisi\SecureCoinAPI\SecureCoinAPI;
51+
use space\yurisi\SecureCoinAPI\History
52+
53+
$history = new History(
54+
$player->getName(),
55+
null,
56+
減らすお金,
57+
"プラグイン名",
58+
"詳細(省略可)"
59+
);
60+
$api->takeMoney($history);
61+
```
62+
4663
お金を取得
4764
```php
4865
$api->getMoney($player->getName());

0 commit comments

Comments
 (0)