added login to topdons list
This commit is contained in:
parent
0d8ff77867
commit
f46cd9c939
@ -346,7 +346,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
|
|||||||
$this->sendDonateUsageExample($player);
|
$this->sendDonateUsageExample($player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$amount = (int)$params[1];
|
$amount = (int) $params[1];
|
||||||
if (!$amount || $amount <= 0) {
|
if (!$amount || $amount <= 0) {
|
||||||
$this->sendDonateUsageExample($player);
|
$this->sendDonateUsageExample($player);
|
||||||
return;
|
return;
|
||||||
@ -391,7 +391,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
|
|||||||
$this->sendPayUsageExample($player);
|
$this->sendPayUsageExample($player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$amount = (int)$params[1];
|
$amount = (int) $params[1];
|
||||||
if (!$amount || $amount <= 0) {
|
if (!$amount || $amount <= 0) {
|
||||||
$this->sendPayUsageExample($player);
|
$this->sendPayUsageExample($player);
|
||||||
return;
|
return;
|
||||||
@ -491,7 +491,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
|
|||||||
$headFrame = new Frame();
|
$headFrame = new Frame();
|
||||||
$frame->add($headFrame);
|
$frame->add($headFrame);
|
||||||
$headFrame->setY($posY - 5);
|
$headFrame->setY($posY - 5);
|
||||||
$array = array('$oId' => $posX + 5, '$oNickname' => $posX + 18, '$oDonated planets' => $posX + 70);
|
$array = array('$oId' => $posX + 5, '$oNickname' => $posX + 18, '$oLogin' => $posX + 70, '$oDonated planets' => $posX + 110);
|
||||||
$this->maniaControl->getManialinkManager()->labelLine($headFrame, $array);
|
$this->maniaControl->getManialinkManager()->labelLine($headFrame, $array);
|
||||||
|
|
||||||
$index = 1;
|
$index = 1;
|
||||||
@ -519,7 +519,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$donatingPlayer = $this->maniaControl->getPlayerManager()->getPlayerByIndex($playerIndex);
|
$donatingPlayer = $this->maniaControl->getPlayerManager()->getPlayerByIndex($playerIndex);
|
||||||
$array = array($index => $posX + 5, $donatingPlayer->nickname => $posX + 18, $donations => $posX + 70);
|
$array = array($index => $posX + 5, $donatingPlayer->nickname => $posX + 18, $donatingPlayer->login => $posX + 70, $donations => $posX + 110);
|
||||||
$this->maniaControl->getManialinkManager()->labelLine($playerFrame, $array);
|
$this->maniaControl->getManialinkManager()->labelLine($playerFrame, $array);
|
||||||
|
|
||||||
$posY -= 4;
|
$posY -= 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user