Skip to content

Commit

Permalink
Fixed #255
Browse files Browse the repository at this point in the history
  • Loading branch information
tltneon committed Feb 26, 2025
1 parent ea44e93 commit d11a75a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ function type($var) {
'installed' => true,
'feed' => ['method' => 0, 'url' => \"http://www.greycube.co.uk/lgsl/feed/lgsl_files/lgsl_feed.php\"],
'style' => '{$conf['style']}', // options: breeze_style.css, darken_style.css, classic_style.css, ogp_style.css, parallax_style.css, disc_ff_style.css, materials_style.css
'scripts' => '{$conf['scripts']}',
'locations' => '{$conf['locations']}',
'scripts' => {$conf['scripts']},
'locations' => {$conf['locations']},
'list' => ['totals' => {$conf['totals']}],
'sort' => [
'servers' => \"{$conf['sort_servers_by']}\", // OPTIONS: id type zone players status
Expand Down
2 changes: 1 addition & 1 deletion src/lgsl_protocol.php
Original file line number Diff line number Diff line change
Expand Up @@ -3296,7 +3296,7 @@ static function lgslParseColor($string, $type, $needRemove = true) {
$string[$i] = chr($char);
}
} else {
$colors = ['0' => '888888', '1' => 'ff0000', '2' => '00ff00', '3' => 'DDCC00', '4' => '3377EE', '5' => '00eeee', '6' => 'DD55DD', '7' => 'ffffff', '9' => '808080'];
$colors = ['0' => '888888', '1' => 'ff0000', '2' => '00ff00', '3' => 'DDCC00', '4' => '3377EE', '5' => '00eeee', '6' => 'DD55DD', '7' => 'ffffff', '8' => '808080', '9' => '808080'];
$pattern = '/\^(\d{1})([0-9a-zA-Z !@$%&-*+|\/\.]+)?/';
return Helper::lgslColorParser($string, $pattern, $colors);
}
Expand Down

0 comments on commit d11a75a

Please sign in to comment.