Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter flexdope

    (@flexdope)

    Okey I find the solution.

    You need delete line 54 in file shortcodes.php and put there:

    $online_players = '';
    $maximum_players = '';
    
    is_array( $server_info['general']['online_players'] ) ? $online_players = $server_info['general']['online_players']['value'] : $online_players = $server_info['general']['online_players'];
    
    is_array( $server_info['general']['maximum_online_players'] ) ? $maximum_players = $server_info['general']['maximum_online_players']['value'] : $maximum_players = $server_info['general']['maximum_online_players'];
    
    $content .= '<strong>' . __('Players:', 'game-server-status') . '</strong> ' . $online_players . '/' . $maximum_players . '<br />';
Viewing 1 replies (of 1 total)