5.3 support
This commit is contained in:
parent
f18432aea4
commit
7c4c18535f
@ -69,9 +69,9 @@ class CustomUIManager implements CallbackListener, TimerListener {
|
|||||||
*
|
*
|
||||||
* @param Player $player
|
* @param Player $player
|
||||||
*/
|
*/
|
||||||
private function updateManialink(Player $player = null) {
|
public function updateManialink(Player $player = null) {
|
||||||
if ($player) {
|
if ($player) {
|
||||||
$this->maniaControl->manialinkManager->sendManialink($this->customUI, $player->login);
|
$this->maniaControl->manialinkManager->sendManialink($this->customUI, $player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->maniaControl->manialinkManager->sendManialink($this->customUI);
|
$this->maniaControl->manialinkManager->sendManialink($this->customUI);
|
||||||
@ -85,6 +85,7 @@ class CustomUIManager implements CallbackListener, TimerListener {
|
|||||||
public function handlePlayerJoined(Player $player) {
|
public function handlePlayerJoined(Player $player) {
|
||||||
$this->updateManialink($player);
|
$this->updateManialink($player);
|
||||||
|
|
||||||
|
//TODO: validate necessity
|
||||||
//send it again after 500ms
|
//send it again after 500ms
|
||||||
$self = $this;
|
$self = $this;
|
||||||
$this->maniaControl->timerManager->registerOneTimeListening($this, function ($time) use (&$self, &$player) {
|
$this->maniaControl->timerManager->registerOneTimeListening($this, function ($time) use (&$self, &$player) {
|
||||||
|
Loading…
Reference in New Issue
Block a user