fix cup point system

This commit is contained in:
Beu
2021-09-06 19:05:55 +02:00
parent ebb5ae1e6d
commit 8b2a97bee6
2 changed files with 21 additions and 20 deletions

View File

@ -42,7 +42,7 @@ class MatchManagerWidget implements ManialinkPageAnswerListener, CallbackListene
* Constants
*/
const PLUGIN_ID = 153;
const PLUGIN_VERSION = 1.3;
const PLUGIN_VERSION = 1.4;
const PLUGIN_NAME = 'MatchManager Widget';
const PLUGIN_AUTHOR = 'Beu';
@ -454,11 +454,7 @@ class MatchManagerWidget implements ManialinkPageAnswerListener, CallbackListene
$points = $score[2];
if (isset($pointlimit)) {
if ($score[2] > $pointlimit) {
if ($score[3] == 0 || $score[2] - $score[3] == $pointlimit) {
$points = '$0f0Winner';
} else {
$points = '$f00Finalist';
}
$points = '$0f0Winner';
} elseif ($score[2] == $pointlimit) {
$points = '$f00Finalist';
}