From 176d31c7b464cc148f08b6db63e66466161c01ca Mon Sep 17 00:00:00 2001 From: vbawol Date: Sun, 5 Apr 2015 09:10:02 -0500 Subject: [PATCH] Update GetOnlinePlayers.php --- Tools/PHP/GetOnlinePlayers.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/PHP/GetOnlinePlayers.php b/Tools/PHP/GetOnlinePlayers.php index 092ced35..b90fb80e 100644 --- a/Tools/PHP/GetOnlinePlayers.php +++ b/Tools/PHP/GetOnlinePlayers.php @@ -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);