Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function execute(CommandSender $sender, string $commandLabel, array $args) |
||
40 | { |
||
41 | if (!$sender instanceof Player) { |
||
42 | $sender->sendMessage(TextFormat::RED.'このコマンドはプレイヤーのみ実行可能です。'); |
||
43 | |||
44 | return true; |
||
45 | } |
||
46 | $sender->sendMessage(TextFormat::RED.$sender->getPing().TextFormat::YELLOW.'ms'); |
||
47 | |||
48 | return true; |
||
49 | } |
||
50 | } |
||
51 |