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

Commit ba0a894

Browse files
committed
Update moderator command
キャンセルされた場合にモデレーターフォームを表示する
1 parent 0b3fae7 commit ba0a894

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/VectorNetworkProject/TheMix/command/defaults/ModeratorCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ public static function sendModeratorUI(Player $player): void
7373
public static function sendLevelManagerUI(Player $player): void
7474
{
7575
$form = FormApi::makeListForm(function (Player $player, ?int $data) {
76-
if (FormApi::formCancelled($data)) return;
76+
if (FormApi::formCancelled($data)) {
77+
self::sendModeratorUI($player);
78+
}
7779
switch ($data) {
7880
case 0:
7981
$player->teleport(Server::getInstance()->getDefaultLevel()->getSpawnLocation());

0 commit comments

Comments
 (0)