formatting
This commit is contained in:
parent
50547437f7
commit
30459811c0
@ -44,11 +44,11 @@ class DedimaniaData {
|
||||
* @param Version $serverVersion
|
||||
*/
|
||||
public function __construct($serverLogin, $dedimaniaCode, $path, $packmask, Version $serverVersion) {
|
||||
$this->game = "TM2";
|
||||
$this->game = 'TM2';
|
||||
$this->login = $serverLogin;
|
||||
$this->code = $dedimaniaCode;
|
||||
$this->version = ManiaControl::VERSION;
|
||||
$this->tool = "ManiaControl";
|
||||
$this->tool = 'ManiaControl';
|
||||
$this->path = $path;
|
||||
$this->packmask = $packmask;
|
||||
$this->serverVersion = $serverVersion->version;
|
||||
@ -102,7 +102,6 @@ class DedimaniaData {
|
||||
$login = Player::parseLogin($login);
|
||||
$maxRank = $this->serverMaxRank;
|
||||
foreach ($this->players as $player) {
|
||||
/** @var DedimaniaPlayer $player */
|
||||
if ($player->login === $login) {
|
||||
if ($player->maxRank > $maxRank) {
|
||||
$maxRank = $player->maxRank;
|
||||
|
@ -706,7 +706,6 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
|
||||
if ($record->rank > $this->dedimaniaData->serverMaxRank) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (!$record->newRecord) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user