Code?

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

tiehm

Developer
Supreme
Feedback score
7
Posts
688
Reactions
455
Resources
0
Don't pay someone, in general just add a div with the id "players" for example.
Add this Script:


$.getJSON( 'https://mcapi.ca/query/IPHERE/players', function( status ) {
if (status.status) {
$('#players').html("Currently " + status.players.online + " players online");
} else {
$('#players').html('Server is offline');
}
});
 

RookieCraft

Feedback score
1
Posts
42
Reactions
14
Resources
0
I'm like really dumb, so if someone could elaborate on the above a little that would be great!
 
Status
This thread has been locked.
Top