fixed forcetoplay

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:34:57 +02:00
1 parent 8dfed19991
commit 8df21859a0
2 files changed
+24 -11

No files matched your search

+6 -1
View File
@@ -178,7 +178,12 @@ class PlayerCommands implements CommandListener, ManialinkPageAnswerListener {
if(isset($params[2]) && is_numeric($params[2])) {
$type = intval($params[2]);
}
$this->maniaControl->playerManager->playerActions->forcePlayerToPlay($player->login, $targetLogin, $type);
$selectable = false;
if($type == 2) {
$selectable = true;
}
$this->maniaControl->playerManager->playerActions->forcePlayerToPlay($player->login, $targetLogin, $selectable);
}
/**