Update GetOnlinePlayers.php

This commit is contained in:
vbawol 2015-04-05 09:10:02 -05:00
parent f2f289d723
commit 176d31c7b4

View File

@ -14,6 +14,7 @@ $redis = new Redis();
$redis->pconnect(127.0.0.1, 6379, 2.5, "Server1");
$redis->auth("yourlongasspasswordhere");
// get online players UID array
$data = $redis->get('PLAYERS:' . $instance);
$onlineUIDs = json_decode($data);