Compare commits
2 Commits
45e4417f97
...
fb3bf97bfc
Author | SHA1 | Date | |
---|---|---|---|
fb3bf97bfc | |||
96757006a1 |
@ -38,7 +38,7 @@ use ManiaControl\Callbacks\TimerListener; // for pause
|
|||||||
class MatchManagerCore implements CallbackListener, CommandListener, TimerListener, CommunicationListener, Plugin {
|
class MatchManagerCore implements CallbackListener, CommandListener, TimerListener, CommunicationListener, Plugin {
|
||||||
|
|
||||||
const PLUGIN_ID = 152;
|
const PLUGIN_ID = 152;
|
||||||
const PLUGIN_VERSION = 4.6;
|
const PLUGIN_VERSION = 4.7;
|
||||||
const PLUGIN_NAME = 'MatchManager Core';
|
const PLUGIN_NAME = 'MatchManager Core';
|
||||||
const PLUGIN_AUTHOR = 'Beu';
|
const PLUGIN_AUTHOR = 'Beu';
|
||||||
|
|
||||||
@ -1561,7 +1561,7 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen
|
|||||||
} elseif ($structure->getSection() == "EndRound") {
|
} elseif ($structure->getSection() == "EndRound") {
|
||||||
$timestamp = time();
|
$timestamp = time();
|
||||||
|
|
||||||
if ($this->nbmaps != 0 && $this->nbrounds <= $this->settings_nbroundsbymap) {
|
if ($this->nbmaps != 0 && ($this->nbrounds <= $this->settings_nbroundsbymap || $this->settings_nbroundsbymap <= 0)) {
|
||||||
//
|
//
|
||||||
// Players Scores
|
// Players Scores
|
||||||
//
|
//
|
||||||
|
@ -510,11 +510,11 @@ class MatchManagerGSheet implements CallbackListener, TimerListener, CommandLis
|
|||||||
$data->data[3] = new \stdClass;
|
$data->data[3] = new \stdClass;
|
||||||
$data->data[3]->range = "'" . $sheetname . "'!" . self::MODE_SPECIFICS_SETTINGS[$this->currentdatamode]["TeamsScoreTable_BeginLetter"] . "2";
|
$data->data[3]->range = "'" . $sheetname . "'!" . self::MODE_SPECIFICS_SETTINGS[$this->currentdatamode]["TeamsScoreTable_BeginLetter"] . "2";
|
||||||
$data->data[3]->values = $currentteamsscore;
|
$data->data[3]->values = $currentteamsscore;
|
||||||
} else {
|
|
||||||
$nbmaps = $this->MatchManagerCore->getMapNumber();
|
|
||||||
$nbrounds = $this->MatchManagerCore->getRoundNumber();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$nbmaps = $this->MatchManagerCore->getMapNumber();
|
||||||
|
$nbrounds = $this->MatchManagerCore->getRoundNumber();
|
||||||
|
|
||||||
$asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, 'https://sheets.googleapis.com/v4/spreadsheets/' . $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MATCHMANAGERGSHEET_SPREADSHEET) . '/values:batchUpdate');
|
$asyncHttpRequest = new AsyncHttpRequest($this->maniaControl, 'https://sheets.googleapis.com/v4/spreadsheets/' . $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MATCHMANAGERGSHEET_SPREADSHEET) . '/values:batchUpdate');
|
||||||
$asyncHttpRequest->setContentType(AsyncHttpRequest::CONTENT_TYPE_JSON);
|
$asyncHttpRequest->setContentType(AsyncHttpRequest::CONTENT_TYPE_JSON);
|
||||||
$asyncHttpRequest->setHeaders(array("Authorization: Bearer " . $this->access_token));
|
$asyncHttpRequest->setHeaders(array("Authorization: Bearer " . $this->access_token));
|
||||||
|
Loading…
Reference in New Issue
Block a user