code refactoring
- improved comparing & checking - improved string composition
This commit is contained in:
@ -223,12 +223,9 @@ class PlayerCommands implements CommandListener, ManialinkPageAnswerListener, Ca
|
||||
|
||||
$type = 2;
|
||||
if (isset($params[2]) && is_numeric($params[2])) {
|
||||
$type = intval($params[2]);
|
||||
}
|
||||
$selectable = false;
|
||||
if ($type == 2) {
|
||||
$selectable = true;
|
||||
$type = (int)$params[2];
|
||||
}
|
||||
$selectable = ($type === 2);
|
||||
|
||||
$this->maniaControl->playerManager->playerActions->forcePlayerToPlay($player->login, $targetLogin, $selectable);
|
||||
}
|
||||
|
Reference in New Issue
Block a user