adjusted logging calls to new parameter order and count

This commit is contained in:
Steffen Schröder
2014-08-05 02:08:41 +02:00
parent 68c9c4e555
commit 98b5f132dc
10 changed files with 27 additions and 27 deletions

View File

@ -118,7 +118,7 @@ class PlayerActions {
return;
}
$this->maniaControl->getChat()->sendInformation($chatMessage);
Logger::logInfo($chatMessage, true, true, true);
Logger::logInfo($chatMessage, true);
}
/**
@ -197,7 +197,7 @@ class PlayerActions {
$title = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin->authLevel);
$chatMessage = $title . ' ' . $admin->getEscapedNickname(). ' forced ' . $target->getEscapedNickname(). ' to Spectator!';
$this->maniaControl->getChat()->sendInformation($chatMessage);
Logger::logInfo($chatMessage, true, true, true);
Logger::logInfo($chatMessage, true);
if ($releaseSlot) {
// Free player slot
@ -238,7 +238,7 @@ class PlayerActions {
$title = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin->authLevel);
$chatMessage = $title . ' ' . $admin->getEscapedNickname() . ' un-muted ' . $target->getEscapedNickname(). '!';
$this->maniaControl->getChat()->sendInformation($chatMessage);
Logger::logInfo($chatMessage, true, true, true);
Logger::logInfo($chatMessage, true);
}
/**
@ -270,7 +270,7 @@ class PlayerActions {
$title = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin->authLevel);
$chatMessage = $title . ' ' . $admin->getEscapedNickname(). ' muted ' . $target->getEscapedNickname(). '!';
$this->maniaControl->getChat()->sendInformation($chatMessage);
Logger::logInfo($chatMessage, true, true, true);
Logger::logInfo($chatMessage, true);
}
/**
@ -352,7 +352,7 @@ class PlayerActions {
$title = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin->authLevel);
$chatMessage = $title . ' ' . $admin->getEscapedNickname(). ' warned ' . $target->getEscapedNickname(). '!';
$this->maniaControl->getChat()->sendInformation($chatMessage);
Logger::log($chatMessage, true, true);
Logger::log($chatMessage, true);
}
/**
@ -388,7 +388,7 @@ class PlayerActions {
$title = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin->authLevel);
$chatMessage = $title . ' ' . $admin->getEscapedNickname() . ' kicked ' . $target->getEscapedNickname() . '!';
$this->maniaControl->getChat()->sendInformation($chatMessage);
Logger::logInfo($chatMessage, true, true, true);
Logger::logInfo($chatMessage, true);
}
/**
@ -420,7 +420,7 @@ class PlayerActions {
$title = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin->authLevel);
$chatMessage = $title . ' ' . $admin->getEscapedNickname(). ' banned ' . $target->getEscapedNickname(). '!';
$this->maniaControl->getChat()->sendInformation($chatMessage);
Logger::logInfo($chatMessage, true, true, true);
Logger::logInfo($chatMessage, true);
}
/**
@ -458,7 +458,7 @@ class PlayerActions {
$title = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin->authLevel);
$chatMessage = $title . ' ' . $admin->getEscapedNickname(). ' added ' . $target->getEscapedNickname(). ' as $< ' . $authLevelName . '$>!';
$this->maniaControl->getChat()->sendInformation($chatMessage);
Logger::logInfo($chatMessage, true, true, true);
Logger::logInfo($chatMessage, true);
}
/**
@ -495,7 +495,7 @@ class PlayerActions {
$title = $this->maniaControl->getAuthenticationManager()->getAuthLevelName($admin->authLevel);
$chatMessage = $title . ' ' . $admin->getEscapedNickname(). ' revoked the Rights of ' . $target->getEscapedNickname(). '!';
$this->maniaControl->getChat()->sendInformation($chatMessage);
Logger::logInfo($chatMessage, true, true, true);
Logger::logInfo($chatMessage, true);
}
/**

View File

@ -319,7 +319,7 @@ class PlayerManager implements CallbackListener, TimerListener {
$played = Formatter::formatTimeH(time() - $player->joinTime);
$logMessage = "Player left: {$player->login} / {$player->nickname} Playtime: {$played}";
Logger::logInfo($logMessage, true, true, true);
Logger::logInfo($logMessage, true);
if ($this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_JOIN_LEAVE_MESSAGES)) {
$this->maniaControl->getChat()->sendChat('$0f0$<$fff' . $player->nickname . '$> has left the game');
@ -417,7 +417,7 @@ class PlayerManager implements CallbackListener, TimerListener {
}
$logMessage = "Player joined: {$player->login} / {$player->nickname} Nation: " . $player->getCountry() . " IP: {$player->ipAddress}";
Logger::logInfo($logMessage, true, true, true);
Logger::logInfo($logMessage, true);
// Increment the Player Join Count
$this->maniaControl->getStatisticManager()->incrementStat(self::STAT_JOIN_COUNT, $player, $this->maniaControl->getServer()->index);