update version + minor fix
This commit is contained in:
parent
2ab065a819
commit
7c7f494973
@ -39,7 +39,7 @@ use Maniaplanet\DedicatedServer\InvalidArgumentException;
|
|||||||
class MatchManagerCore implements ManialinkPageAnswerListener, CallbackListener, CommandListener, TimerListener, CommunicationListener, Plugin {
|
class MatchManagerCore implements ManialinkPageAnswerListener, CallbackListener, CommandListener, TimerListener, CommunicationListener, Plugin {
|
||||||
|
|
||||||
const PLUGIN_ID = 152;
|
const PLUGIN_ID = 152;
|
||||||
const PLUGIN_VERSION = 1.3;
|
const PLUGIN_VERSION = 1.4;
|
||||||
const PLUGIN_NAME = 'MatchManager Core';
|
const PLUGIN_NAME = 'MatchManager Core';
|
||||||
const PLUGIN_AUTHOR = 'Beu';
|
const PLUGIN_AUTHOR = 'Beu';
|
||||||
|
|
||||||
@ -1487,7 +1487,9 @@ class MatchManagerCore implements ManialinkPageAnswerListener, CallbackListener,
|
|||||||
$results = $structure->getPlayerScores();
|
$results = $structure->getPlayerScores();
|
||||||
|
|
||||||
// Resort scores
|
// Resort scores
|
||||||
|
if ($structure->getSection() == "PreEndRound") {
|
||||||
usort($results, function ($a, $b) { return -($a->getMatchPoints() + $a->getRoundPoints() <=> $b->getMatchPoints() + $b->getRoundPoints()); });
|
usort($results, function ($a, $b) { return -($a->getMatchPoints() + $a->getRoundPoints() <=> $b->getMatchPoints() + $b->getRoundPoints()); });
|
||||||
|
}
|
||||||
|
|
||||||
// CUP Specific variables
|
// CUP Specific variables
|
||||||
$this->nbwinners = 0;
|
$this->nbwinners = 0;
|
||||||
@ -1865,3 +1867,4 @@ class MatchManagerCore implements ManialinkPageAnswerListener, CallbackListener,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user