improvements
This commit is contained in:
@ -308,11 +308,7 @@ class PlayerManager implements CallbackListener {
|
||||
$playerStatement->close();
|
||||
|
||||
// Increment the Player Join Count
|
||||
$success = $this->maniaControl->statisticManager->incrementStat(self::STAT_JOIN_COUNT, $player, $this->maniaControl->server->getLogin());
|
||||
|
||||
if(!$success) {
|
||||
trigger_error("Error while setting the JoinCount");
|
||||
}
|
||||
$this->maniaControl->statisticManager->incrementStat(self::STAT_JOIN_COUNT, $player, $this->maniaControl->server->getLogin());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -183,6 +183,7 @@ class StatisticManager {
|
||||
trigger_error($mysqli->error);
|
||||
return false;
|
||||
}
|
||||
|
||||
$statement->bind_param('iiii', $serverId, $player->index, $statId, $value);
|
||||
$statement->execute();
|
||||
if($statement->error) {
|
||||
|
Reference in New Issue
Block a user