File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 46
46
} else {
47
47
$ platform = $ Info ['GameName ' ];
48
48
}
49
-
50
- $ playerList = array ( );
51
- if ( !empty ( $ InfoPing [ ' players ' ][ ' sample ' ] ) ) {
52
- $ playerList = $ InfoPing [ ' players ' ][ ' sample ' ] ;
53
- }
54
-
55
- $ pluginList = array ( );
56
- if ( !empty ( $ Info ['Plugins ' ] ) ) {
57
- $ pluginList = $ Info ['Plugins ' ];
58
- }
49
+
50
+ $ playerList = array ();
51
+ if (!empty ($ Query -> GetPlayers ()) ) {
52
+ $ playerList = $ Query -> GetPlayers () ;
53
+ }
54
+
55
+ $ pluginList = array ();
56
+ if (!empty ($ Info ['Plugins ' ]) ) {
57
+ $ pluginList = $ Info ['Plugins ' ];
58
+ }
59
59
60
60
$ json = array (
61
61
'status ' => 'Online ' ,
86
86
'processed ' => $ Timer
87
87
)
88
88
);
89
- } else if ($ InfoPing !== false ){
89
+ } else if ($ InfoPing !== false ) {
90
90
$ version = explode (" " , $ InfoPing ['version ' ]['name ' ], 2 );
91
91
$ hostNameHtml = str_replace ("§k " , "" , $ InfoPing ['description ' ]);
92
92
$ hostNameHtml = str_replace ("§l " , "" , $ hostNameHtml );
You can’t perform that action at this time.
0 commit comments