Server list not working
Closed this issue · 2 comments
fleabeard69 commented
I've edited my config.php to include a few of my servers, but for some reason, they aren't appearing in the drop-down menu?
My config.php:
# Player Analytics config file
# If you have suggestions or you found a bug -> contact me: thechaoscoder+player-analytics[at]gmail.com (replace at] with @, bot protection)
# or open an issue here https://github.com/theChaosCoder/player_analytics
//Set encoding
ini_set('default_charset', 'utf-8');
$Title = "Player Analytics";
$Show_Max_Countries = 10; # Top 10 Countries
$hide_inactive_servers_days = 0; # Hide servers that are 'inactive' since X Days
const MUST_LOG_IN = true;
const STEAM_APIKEY = '<redacted>'; # add your key (optional)
# optional - replace ip with your server name
$server_names = [
"45.79.25.239:27015" => "2Fort",
"45.79.25.248:27015" => "Badwater",
"45.79.25.217:27015" => "Dustbowl",
"50.116.62.221:27015" => "Upward"
];
# A name that will appears in nav below the ip
# Only usefull if you don't want to use server_names
$server_sub_names = [
"your_ip:port" => "Server name",
"2.2.2.2" => "TRADE & IDLE SERVER",
"3.3.3.3:20715" => "WaffleTown",
];
# Replace flags like z, bce with a name like VIP, Admin etc.
$staff_group_names = [
#"z" => "Super Admin (z)",
#"bce" => "VIP (bce)",
];
# Show only records with the following flags:
$staff_whitelist = [
#"z",
#"abc",
];
# You can not combine white and black list!
# Hide records with the following flags:
$staff_blacklist = [
#"z",
#"abc",
];```
theChaosCoder commented
Delete the SQL folder in cache and see if it helps.
fleabeard69 commented
That did indeed fix it. Thank you!