mirror of
https://github.com/TotalFreedomMC/Website.git
synced 2025-07-30 09:22:10 +00:00
Added local script for checking server status over raw TCP.
This replaces the need for external dependency "MCAPI".
This commit is contained in:
parent
3152b7bd21
commit
1334f8ad84
2 changed files with 149 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue