fixed pause vote and start for combo
This commit is contained in:
parent
eba2b56653
commit
68edd009fc
@ -16,6 +16,7 @@ use ManiaControl\Logger;
|
|||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
use ManiaControl\Manialinks\ManialinkPageAnswerListener;
|
use ManiaControl\Manialinks\ManialinkPageAnswerListener;
|
||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
|
use Maniaplanet\DedicatedServer\Xmlrpc\FaultException;
|
||||||
use Maniaplanet\DedicatedServer\Xmlrpc\GameModeException;
|
use Maniaplanet\DedicatedServer\Xmlrpc\GameModeException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,7 +226,7 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer
|
|||||||
try {
|
try {
|
||||||
$this->maniaControl->getClient()->sendModeScriptCommands(array('Command_ForceWarmUp' => true));
|
$this->maniaControl->getClient()->sendModeScriptCommands(array('Command_ForceWarmUp' => true));
|
||||||
$this->maniaControl->getChat()->sendInformation($player->getEscapedNickname() . ' paused the Game!');
|
$this->maniaControl->getChat()->sendInformation($player->getEscapedNickname() . ' paused the Game!');
|
||||||
} catch (GameModeException $e) {
|
} catch (GameModeException | FaultException $e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -235,7 +236,7 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer
|
|||||||
|
|
||||||
//Especially for chase, force end of the round to reach a draw
|
//Especially for chase, force end of the round to reach a draw
|
||||||
$this->maniaControl->getClient()->sendModeScriptCommands(array('Command_ForceEndRound' => true));
|
$this->maniaControl->getClient()->sendModeScriptCommands(array('Command_ForceEndRound' => true));
|
||||||
} catch (GameModeException $ex) {
|
} catch (GameModeException | FaultException $ex) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO verify if not everything is replaced through the new pause
|
//TODO verify if not everything is replaced through the new pause
|
||||||
|
@ -37,6 +37,7 @@ use ManiaControl\Settings\SettingManager;
|
|||||||
use ManiaControl\Utils\ColorUtil;
|
use ManiaControl\Utils\ColorUtil;
|
||||||
use Maniaplanet\DedicatedServer\Structures\VoteRatio;
|
use Maniaplanet\DedicatedServer\Structures\VoteRatio;
|
||||||
use Maniaplanet\DedicatedServer\Xmlrpc\ChangeInProgressException;
|
use Maniaplanet\DedicatedServer\Xmlrpc\ChangeInProgressException;
|
||||||
|
use Maniaplanet\DedicatedServer\Xmlrpc\FaultException;
|
||||||
use Maniaplanet\DedicatedServer\Xmlrpc\GameModeException;
|
use Maniaplanet\DedicatedServer\Xmlrpc\GameModeException;
|
||||||
|
|
||||||
|
|
||||||
@ -524,7 +525,7 @@ class CustomVotesPlugin implements SidebarMenuEntryListener, CommandListener, Ca
|
|||||||
//Gamemodes like Elite, Speedball
|
//Gamemodes like Elite, Speedball
|
||||||
$this->maniaControl->getClient()->sendModeScriptCommands(array('Command_ForceWarmUp' => true));
|
$this->maniaControl->getClient()->sendModeScriptCommands(array('Command_ForceWarmUp' => true));
|
||||||
$this->maniaControl->getChat()->sendInformation('$f8fVote to $fffpause the current Game$f8f has been successful!');
|
$this->maniaControl->getChat()->sendInformation('$f8fVote to $fffpause the current Game$f8f has been successful!');
|
||||||
} catch (GameModeException $ex) {
|
} catch (GameModeException | FaultException $ex) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO verify if not everything is replaced through the new pause
|
//TODO verify if not everything is replaced through the new pause
|
||||||
|
@ -34,7 +34,7 @@ use MCTeam\Common\RecordWidget;
|
|||||||
* ManiaControl Local Records Plugin
|
* ManiaControl Local Records Plugin
|
||||||
*
|
*
|
||||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||||
* @copyright 2014-2019 ManiaControl Team
|
* @copyright 2014-2020 ManiaControl Team
|
||||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||||
*/
|
*/
|
||||||
class LocalRecordsPlugin implements CallbackListener, CallQueueListener, CommandListener, ManialinkPageAnswerListener, TimerListener, Plugin {
|
class LocalRecordsPlugin implements CallbackListener, CallQueueListener, CommandListener, ManialinkPageAnswerListener, TimerListener, Plugin {
|
||||||
|
Loading…
Reference in New Issue
Block a user