minor fix
This commit is contained in:
parent
84b884154c
commit
d22751d812
@ -474,10 +474,10 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer
|
|||||||
$pointString = $params[1];
|
$pointString = $params[1];
|
||||||
$pointArray = explode(',', $pointString);
|
$pointArray = explode(',', $pointString);
|
||||||
$this->maniaControl->getModeScriptEventManager()->setTrackmaniaPointsRepartition($pointArray);
|
$this->maniaControl->getModeScriptEventManager()->setTrackmaniaPointsRepartition($pointArray);
|
||||||
$this->maniaControl->getChat()->sendInformation('Points Repartition Changed!', $player);
|
$this->maniaControl->getChat()->sendInformation('Points Distribution Changed!', $player);
|
||||||
$this->commandGetPointsRepartition($chatCallback, $player);
|
$this->commandGetPointsRepartition($chatCallback, $player);
|
||||||
} else {
|
} else {
|
||||||
$this->maniaControl->getChat()->sendError('You must provide a point Repartition in the following form: 10,8,6,4,3 !', $player);
|
$this->maniaControl->getChat()->sendError('You must provide a point Distribution in the following form: 10,8,6,4,3 !', $player);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -501,7 +501,7 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer
|
|||||||
}
|
}
|
||||||
$pointRepartitionString = substr($pointRepartitionString, 0, -1);
|
$pointRepartitionString = substr($pointRepartitionString, 0, -1);
|
||||||
|
|
||||||
$this->maniaControl->getChat()->sendInformation('Current Points Repartition: ' . $pointRepartitionString, $player);
|
$this->maniaControl->getChat()->sendInformation('Current Points Distribution: ' . $pointRepartitionString, $player);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -306,7 +306,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
|
|||||||
$data = $this->decode($data);
|
$data = $this->decode($data);
|
||||||
|
|
||||||
//Data[0][0] can be false in error case like map has no checkpoints
|
//Data[0][0] can be false in error case like map has no checkpoints
|
||||||
if (!is_array($data) || empty($data) || $data[0][0] == false) {
|
if (!is_array($data) || empty($data) || !isset($data[0]) || !isset($data[0][0]) || $data[0][0] == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user