Hey BiBilly, your template is very helpfull thanks a lot!!! I started using it for my small server. It's nice, nothing too big, just when you need something simple for server for a few friends to get to dynmap and some other server websites.
Despite that, I have noticed some not working code. My player count doesn't refresh and stays on 0, Ik that you get it from some mcapi, but that seems to be (hopefully temporarily) down. Idk. It still might be worth updating.
If there is someone else having same issue, what worked for me is changing JavaScript in main.js, those last few lines to:
$(document).ready(()=>{
const ip = $(".sip").attr("data-ip");
$.get(`
https://eu.mc-api.net/v3/server/ping/${ip}`, (result)=>{
if (result.online) {
$(".sip").html(result.players.online);
} else {
$(".playercount").html("Server isn't online!");
}
});
setInterval(()=>{
$.get(`
https://eu.mc-api.net/v3/server/ping/${ip}`, (result)=>{
if (result.online) {
$(".sip").html(result.players.online);
} else {
$(".playercount").html("Server isn't online!");
}
});
}, 3000);
});
Although this way I no longer control the port of the server. No idea how to do that, I am not a developer.
All in all, really gooooood template. Simple but very beautiful. I could just sit in front of the screen for hours and watch the animations playing. Thanks a lot