- updates for new server properties
- refactored various imports
This commit is contained in:
@ -423,8 +423,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
|
||||
$message = 'Donation successful! Thanks.';
|
||||
}
|
||||
$this->maniaControl->chat->sendSuccess($message, $login);
|
||||
$serverIndex = $this->maniaControl->server->getIndex();
|
||||
$this->maniaControl->statisticManager->insertStat(self::STAT_PLAYER_DONATIONS, $player, $serverIndex, $amount);
|
||||
$this->maniaControl->statisticManager->insertStat(self::STAT_PLAYER_DONATIONS, $player, $this->maniaControl->server->index, $amount);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -272,8 +272,7 @@ class KarmaPlugin implements CallbackListener, Plugin {
|
||||
$voted = $this->getPlayerVote($player, $map);
|
||||
var_dump($voted);
|
||||
if(!$voted){
|
||||
$serverIndex = $this->maniaControl->server->getIndex();
|
||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_PLAYER_MAPVOTES, $player, $serverIndex);
|
||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_PLAYER_MAPVOTES, $player, $this->maniaControl->server->index);
|
||||
}
|
||||
|
||||
$success = $this->savePlayerVote($player, $map, $vote);
|
||||
|
@ -358,8 +358,7 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
||||
$quad->setPosition($width / 2 - 4, -1.5, -0.5);
|
||||
$quad->setSize(4, 4);
|
||||
$quad->setHAlign(Control::CENTER);
|
||||
$serverLogin = $this->maniaControl->server->getLogin();
|
||||
$quad->setManialink('mcontrol?favorite&' . $serverLogin);
|
||||
$quad->setManialink('mcontrol?favorite&' . $this->maniaControl->server->login);
|
||||
|
||||
// Send manialink
|
||||
$manialinkText = $maniaLink->render()->saveXML();
|
||||
|
Reference in New Issue
Block a user