Commit 6d4aebc1 authored by Stuart John Watson's avatar Stuart John Watson

Changed dynmap to tekkit

Fixed bug where server returned a error string insead of json and broke all the things
parent 00777fd0
......@@ -16,5 +16,5 @@
</dl>
<p>
<a target="_blank" href="http://games.sucs.org/dynmap">Live Map</a>
<a target="_blank" href="http://games.sucs.org/tekkit-dynmap">Live Map</a>
</p>
......@@ -42,13 +42,16 @@ function getInfo(){
}
$t = readVarint(substr($out,1));
$out = $t["data"];
$len = $t["res"];
$result = json_decode($out,$assoc=true);
if (!is_array($result)){
return ["online"=>true,"error"=>$result];
}
$players = [];
if ($result["players"]["sample"]){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment