Reference as servers, not networks.
This commit is contained in:
parent
89bd722fa1
commit
eb75acf754
@ -1,5 +1,5 @@
|
|||||||
### Minetrack
|
### 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)
|
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.
|
// Start our main loop that fires off pings.
|
||||||
setInterval(function() {
|
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.
|
// Make sure we lock our scope.
|
||||||
(function(network) {
|
(function(network) {
|
||||||
ping.ping(network.ip, network.port || 25565, network.type, 2500, function(err, result) {
|
ping.ping(network.ip, network.port || 25565, network.type, 2500, function(err, result) {
|
||||||
@ -44,7 +44,7 @@ setInterval(function() {
|
|||||||
_networkHistory.shift();
|
_networkHistory.shift();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})(networks[i]);
|
})(servers[i]);
|
||||||
}
|
}
|
||||||
}, 2500);
|
}, 2500);
|
||||||
|
|
||||||
|
24
config.json
24
config.json
@ -1,39 +1,29 @@
|
|||||||
{
|
{
|
||||||
"networks": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"name": "Hypixel",
|
"name": "Hypixel",
|
||||||
"ip": "mc.hypixel.net",
|
"ip": "mc.hypixel.net",
|
||||||
"type": "PC"
|
"type": "PC"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Mineplex: US",
|
"name": "Mineplex",
|
||||||
"ip": "us.mineplex.com",
|
"ip": "us.mineplex.com",
|
||||||
"type": "PC"
|
"type": "PC"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Mineplex: EU",
|
"name": "Overcast",
|
||||||
"ip": "eu.mineplex.com",
|
|
||||||
"type": "PC"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Overcast: US",
|
|
||||||
"ip": "us.oc.tc",
|
"ip": "us.oc.tc",
|
||||||
"type": "PC"
|
"type": "PC"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Overcast: EU",
|
|
||||||
"ip": "eu.oc.tc",
|
|
||||||
"type": "PC"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"site": {
|
|
||||||
"port": 80,
|
|
||||||
"ip": "0.0.0.0"
|
|
||||||
},
|
|
||||||
"routes": {
|
"routes": {
|
||||||
"/": "assets/html/index.html",
|
"/": "assets/html/index.html",
|
||||||
"/images/compass.png": "assets/images/compass.png",
|
"/images/compass.png": "assets/images/compass.png",
|
||||||
"/js/site.js": "assets/js/site.js",
|
"/js/site.js": "assets/js/site.js",
|
||||||
"/css/main.css": "assets/css/main.css"
|
"/css/main.css": "assets/css/main.css"
|
||||||
|
},
|
||||||
|
"site": {
|
||||||
|
"port": 80,
|
||||||
|
"ip": "0.0.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "minetrack",
|
"name": "minetrack",
|
||||||
"version": "1.0.0",
|
"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",
|
"main": "app.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"socket.io": "^1.3.7",
|
"socket.io": "^1.3.7",
|
||||||
|
Loading…
Reference in New Issue
Block a user