Add enabled flag
This commit is contained in:
parent
7324669b72
commit
aaa42210f2
2 changed files with 8 additions and 1 deletions
|
|
@ -7,7 +7,9 @@ const update = async () => {
|
||||||
|
|
||||||
/* Generate the elements before updating the renderer */
|
/* Generate the elements before updating the renderer */
|
||||||
for (const server of data.servers) {
|
for (const server of data.servers) {
|
||||||
elements.push(await renderServer(server));
|
if (server.enabled) {
|
||||||
|
elements.push(await renderServer(server));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
serverElements.innerHTML = '';
|
serverElements.innerHTML = '';
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
"name": "Vanilla",
|
"name": "Vanilla",
|
||||||
"id": "vanilla",
|
"id": "vanilla",
|
||||||
|
"enabled": true,
|
||||||
"port": 25566,
|
"port": 25566,
|
||||||
"hasPackVer": false,
|
"hasPackVer": false,
|
||||||
"dynmapUrl": "https://dynmap.vanilla.forgeserv.net"
|
"dynmapUrl": "https://dynmap.vanilla.forgeserv.net"
|
||||||
|
|
@ -10,6 +11,7 @@
|
||||||
{
|
{
|
||||||
"name": "UntouchableMC",
|
"name": "UntouchableMC",
|
||||||
"id": "untouchable",
|
"id": "untouchable",
|
||||||
|
"enabled": true,
|
||||||
"port": 25555,
|
"port": 25555,
|
||||||
"hasPackVer": false,
|
"hasPackVer": false,
|
||||||
"dynmapUrl": "https://dynmap.untouchable.forgeserv.net"
|
"dynmapUrl": "https://dynmap.untouchable.forgeserv.net"
|
||||||
|
|
@ -17,6 +19,7 @@
|
||||||
{
|
{
|
||||||
"name": "Drehmal Primordial",
|
"name": "Drehmal Primordial",
|
||||||
"id": "drehmal",
|
"id": "drehmal",
|
||||||
|
"enabled": true,
|
||||||
"port": 25570,
|
"port": 25570,
|
||||||
"hasPackVer": false,
|
"hasPackVer": false,
|
||||||
"dynmapUrl": "https://dynmap.drehmal.forgeserv.net"
|
"dynmapUrl": "https://dynmap.drehmal.forgeserv.net"
|
||||||
|
|
@ -24,6 +27,7 @@
|
||||||
{
|
{
|
||||||
"name": "Caves 'n Cliffs",
|
"name": "Caves 'n Cliffs",
|
||||||
"id": "caves",
|
"id": "caves",
|
||||||
|
"enabled": true,
|
||||||
"port": 25569,
|
"port": 25569,
|
||||||
"hasPackVer": false,
|
"hasPackVer": false,
|
||||||
"dynmapUrl": null
|
"dynmapUrl": null
|
||||||
|
|
@ -31,6 +35,7 @@
|
||||||
{
|
{
|
||||||
"name": "CUIP",
|
"name": "CUIP",
|
||||||
"id": "cuip",
|
"id": "cuip",
|
||||||
|
"enabled": true,
|
||||||
"port": 25567,
|
"port": 25567,
|
||||||
"hasPackVer": null,
|
"hasPackVer": null,
|
||||||
"dynmapUrl": null
|
"dynmapUrl": null
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue