Reference as servers, not networks.
This commit is contained in:
parent
89bd722fa1
commit
eb75acf754
@ -1,5 +1,5 @@
|
||||
### Minetrack
|
||||
Minetrack is a Minecraft PC/PE tracker that lets you focus on what's happening *now*. Built to be lightweight and durable, you can easily adapt it to monitor BungeeCord or server instances.
|
||||
Minetrack is a Minecraft PC/PE server tracker that lets you focus on what's happening *now*. Built to be lightweight and durable, you can easily adapt it to monitor BungeeCord or server instances.
|
||||
|
||||
Try it out: [http://minetrack.me](http://minetrack.me)
|
||||
|
||||
|
6
app.js
6
app.js
@ -7,9 +7,9 @@ var connectedClients = 0;
|
||||
|
||||
// Start our main loop that fires off pings.
|
||||
setInterval(function() {
|
||||
var networks = config.networks;
|
||||
var servers = config.servers;
|
||||
|
||||
for (var i = 0; i < networks.length; i++) {
|
||||
for (var i = 0; i < servers.length; i++) {
|
||||
// Make sure we lock our scope.
|
||||
(function(network) {
|
||||
ping.ping(network.ip, network.port || 25565, network.type, 2500, function(err, result) {
|
||||
@ -44,7 +44,7 @@ setInterval(function() {
|
||||
_networkHistory.shift();
|
||||
}
|
||||
});
|
||||
})(networks[i]);
|
||||
})(servers[i]);
|
||||
}
|
||||
}, 2500);
|
||||
|
||||
|
24
config.json
24
config.json
@ -1,39 +1,29 @@
|
||||
{
|
||||
"networks": [
|
||||
"servers": [
|
||||
{
|
||||
"name": "Hypixel",
|
||||
"ip": "mc.hypixel.net",
|
||||
"type": "PC"
|
||||
},
|
||||
{
|
||||
"name": "Mineplex: US",
|
||||
"name": "Mineplex",
|
||||
"ip": "us.mineplex.com",
|
||||
"type": "PC"
|
||||
},
|
||||
{
|
||||
"name": "Mineplex: EU",
|
||||
"ip": "eu.mineplex.com",
|
||||
"type": "PC"
|
||||
},
|
||||
{
|
||||
"name": "Overcast: US",
|
||||
"name": "Overcast",
|
||||
"ip": "us.oc.tc",
|
||||
"type": "PC"
|
||||
},
|
||||
{
|
||||
"name": "Overcast: EU",
|
||||
"ip": "eu.oc.tc",
|
||||
"type": "PC"
|
||||
}
|
||||
],
|
||||
"site": {
|
||||
"port": 80,
|
||||
"ip": "0.0.0.0"
|
||||
},
|
||||
"routes": {
|
||||
"/": "assets/html/index.html",
|
||||
"/images/compass.png": "assets/images/compass.png",
|
||||
"/js/site.js": "assets/js/site.js",
|
||||
"/css/main.css": "assets/css/main.css"
|
||||
},
|
||||
"site": {
|
||||
"port": 80,
|
||||
"ip": "0.0.0.0"
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "minetrack",
|
||||
"version": "1.0.0",
|
||||
"description": "A Minecraft network tracker that lets you focus on the basics.",
|
||||
"description": "A Minecraft server tracker that lets you focus on the basics.",
|
||||
"main": "app.js",
|
||||
"dependencies": {
|
||||
"socket.io": "^1.3.7",
|
||||
|
Loading…
Reference in New Issue
Block a user