mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
Some small fixes
This commit is contained in:
parent
13199744ef
commit
5aaf15f81c
@ -78,7 +78,7 @@ else {
|
|||||||
'id' => $players_deaths_count,
|
'id' => $players_deaths_count,
|
||||||
'date' => $death['date'],
|
'date' => $death['date'],
|
||||||
'killers_string' => $killers_string,
|
'killers_string' => $killers_string,
|
||||||
'world_id' => $config['worlds'][(int)$death['world_id']]
|
'world_id' => isset($config['worlds'][(int)$death['world_id']]) ? $config['worlds'][(int)$death['world_id']] : null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,10 +74,14 @@ else if(isset($config['lua']['black_skull_duration'])) {
|
|||||||
$blackSkull = true;
|
$blackSkull = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$clientVersion = NULL;
|
||||||
|
if(isset($status['online']))
|
||||||
|
$clientVersion = isset($status['clientVersion']) ? $status['clientVersion'] : null;
|
||||||
|
|
||||||
$twig->display('serverinfo.html.twig', array(
|
$twig->display('serverinfo.html.twig', array(
|
||||||
'experienceStages' => isset($config['lua']['experienceStages']) && getBoolean($config['lua']['experienceStages']) ? $config['lua']['experienceStages'] : null,
|
'experienceStages' => isset($config['lua']['experienceStages']) && getBoolean($config['lua']['experienceStages']) ? $config['lua']['experienceStages'] : null,
|
||||||
'serverIp' => str_replace('/', '', str_replace('http://', '', $config['lua']['url'])),
|
'serverIp' => str_replace('/', '', str_replace('http://', '', $config['lua']['url'])),
|
||||||
'clientVersion' => isset($status['online']) ? $status['clientVersion'] : null,
|
'clientVersion' => $clientVersion,
|
||||||
'globalSaveHour' => isset($config['lua']['globalSaveEnabled']) && getBoolean($config['lua']['globalSaveEnabled']) ? $config['lua']['globalSaveHour'] : null,
|
'globalSaveHour' => isset($config['lua']['globalSaveEnabled']) && getBoolean($config['lua']['globalSaveEnabled']) ? $config['lua']['globalSaveHour'] : null,
|
||||||
'protectionLevel' => $config['lua']['protectionLevel'],
|
'protectionLevel' => $config['lua']['protectionLevel'],
|
||||||
'houseRent' => $rent == 'never' ? 'disabled' : $rent,
|
'houseRent' => $rent == 'never' ? 'disabled' : $rent,
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
if($rank->isLoaded())
|
if($rank->isLoaded())
|
||||||
{
|
{
|
||||||
imagettftext($image , $fontsize, 0, 20, 75, $color, $font, 'Guild:');
|
imagettftext($image , $fontsize, 0, 20, 75, $color, $font, 'Guild:');
|
||||||
imagettftext($image , $fontsize, 0, 70, 75, $color, $font, $player->getRank()->getName() . ' of the ' . $$rank->getGuild()->getName());
|
imagettftext($image , $fontsize, 0, 70, 75, $color, $font, $player->getRank()->getName() . ' of the ' . $rank->getGuild()->getName());
|
||||||
}
|
}
|
||||||
imagettftext($image , $fontsize, 0, 20, 95, $color, $font, 'Last Login:');
|
imagettftext($image , $fontsize, 0, 20, 95, $color, $font, 'Last Login:');
|
||||||
imagettftext($image , $fontsize, 0, 100, 95, $color, $font, (($player->getLastLogin() > 0) ? date("j F Y, g:i a", $player->getLastLogin()) : 'Never logged in.'));
|
imagettftext($image , $fontsize, 0, 100, 95, $color, $font, (($player->getLastLogin() > 0) ? date("j F Y, g:i a", $player->getLastLogin()) : 'Never logged in.'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user