Skip to content

Commit 2942232

Browse files
committed
Change README.md
1 parent 32b109c commit 2942232

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $api = SecureCoinAPI::getInstance();
3737

3838
お金を追加
3939

40-
https://github.com/SpaceServerDev/SecureCoinAPI/blob/6039c0e18dedfa58431a77d80e9bbdf2758a15fb/src/space/yurisi/SecureCoinAPI/command/addcoinCommand.php#L44-L50
40+
https://github.com/SpaceServerDev/SecureCoinAPI/blob/32b109c19cb7ba73f3086bfb33d5ad1bc84d30e9/src/space/yurisi/SecureCoinAPI/command/addcoinCommand.php#L30-L36
4141
```php
4242
use space\yurisi\SecureCoinAPI\SecureCoinAPI;
4343
use space\yurisi\SecureCoinAPI\History
@@ -71,9 +71,21 @@ $api->takeCoin($history);
7171

7272
お金を取得
7373

74-
https://github.com/SpaceServerDev/SecureCoinAPI/blob/87252872ac9dd25a450102f807d8b0c231ee6324/src/space/yurisi/SecureCoinAPI/command/seecoinCommand.php#L35
74+
https://github.com/SpaceServerDev/SecureCoinAPI/blob/32b109c19cb7ba73f3086bfb33d5ad1bc84d30e9/src/space/yurisi/SecureCoinAPI/command/takecoinCommand.php#L28-L34
75+
7576
```php
7677
$api->getCoin($player->getName());
7778
```
7879

7980
お金をセット
81+
https://github.com/SpaceServerDev/SecureCoinAPI/blob/32b109c19cb7ba73f3086bfb33d5ad1bc84d30e9/src/space/yurisi/SecureCoinAPI/command/setcoinCommand.php#L29-L35
82+
83+
```php
84+
$this->main->setCoin(new History(
85+
$player->getName(),
86+
null,
87+
セットするお金,
88+
"プラグイン名",
89+
"詳細(省略可)"
90+
));
91+
```

0 commit comments

Comments
 (0)