Added local script for checking server status over raw TCP.

This replaces the need for external dependency "MCAPI".
This commit is contained in:
StevenLawson 2017-07-11 22:53:47 -04:00
parent 3152b7bd21
commit 1334f8ad84
2 changed files with 149 additions and 1 deletions

View file

@ -24,7 +24,7 @@ $(document).ready(function() {
interval);
var refresh = function() {
$.getJSON("https://mcapi.ca/query/play.totalfreedom.me:25565/extensive", function(json) {
$.getJSON("status.php", function(json) {
if (json.status !== true) {
$("#online").html('<span style="color: firebrick; font-weight: bolder;"> Server is Offline</span><br/><small style="font-size: .5em;">Check out our <a href="status">Associated Servers</a>!</small>');
$(".button").hide();