Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 577e637

Browse files
author
UramnOIL
committed
りどみ変更
1 parent 89e6932 commit 577e637

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@
55

66
##使い方
77

8-
public function onEnable()
9-
{
10-
$this->accounts = $this->getServer()->getPluginManager()->getPlugin('UserdataProvider')->getManager()->getAccounts();
11-
}
12-
13-
public funciton onPlayerJoin(PlayerJoinEvent $event)
14-
{
15-
$this->accounts->get(
16-
$event->player,
17-
function (array $rows) use($player)
18-
{
19-
$player->sendMessage("あなたのIDは$raws[0][id]です");
20-
}
21-
);
22-
}
8+
```PHP
9+
public function onEnable()
10+
{
11+
$this->accounts = $this->getServer()->getPluginManager()->getPlugin('UserdataProvider')->getManager()->getAccounts();
12+
}
13+
14+
public funciton onPlayerJoin(PlayerJoinEvent $event)
15+
{
16+
$this->accounts->get(
17+
$event->player,
18+
function (array $rows) use($player)
19+
{
20+
$player->sendMessage("あなたのIDは$raws[0][id]です");
21+
}
22+
);
23+
}
24+
``````

0 commit comments

Comments
 (0)