mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update GetOnlinePlayers.php
This commit is contained in:
parent
f2f289d723
commit
176d31c7b4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user