File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff 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
3333use space\yurisi\SecureCoinAPI\SecureCoinAPI;
3434use 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());
You can’t perform that action at this time.
0 commit comments