From 9952c1239a3fcb231094e643acd9bbf2fef30332 Mon Sep 17 00:00:00 2001 From: damp11113 Date: Sun, 6 Oct 2024 00:41:10 +0700 Subject: [PATCH] update something new --- app/assets/js/distromanager.js | 3 ++- distro.json | 31 +++++++++++++++++++++++++------ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/app/assets/js/distromanager.js b/app/assets/js/distromanager.js index 8ae8ca0..74f755f 100644 --- a/app/assets/js/distromanager.js +++ b/app/assets/js/distromanager.js @@ -4,7 +4,8 @@ const ConfigManager = require('./configmanager') // Old WesterosCraft url. // exports.REMOTE_DISTRO_URL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json' -exports.REMOTE_DISTRO_URL = 'https://helios-files.geekcorner.eu.org/distribution.json' +// exports.REMOTE_DISTRO_URL = 'https://helios-files.geekcorner.eu.org/distribution.json' +exports.REMOTE_DISTRO_URL = 'http://127.0.0.1:5500/distro.json' // for development only with vscode live share const api = new DistributionAPI( ConfigManager.getLauncherDirectory(), diff --git a/distro.json b/distro.json index 503ad74..fe2b22c 100644 --- a/distro.json +++ b/distro.json @@ -18,21 +18,40 @@ "servers": [ { "id": "DMB", - "name": "DMB Client", - "description": "", + "name": "DMB Server", + "description": "A best mc roleplay in Thailand", "icon": "", "version": "1.0", "address": "localhost", "minecraftVersion": "1.20.1", "discord": { - "shortId": "Example", - "largeImageText": "WesterosCraft Example Server", - "largeImageKey": "server-example" + "shortId": "Test", + "largeImageText": "", + "largeImageKey": "" }, "mainServer": true, "autoconnect": true, "modules": [ - "Module Objects Here" + + ] + }, + { + "id": "dpg-milsim", + "name": "DPGame something...", + "description": "DPCloudev x DPGame (look at id in distro.json)", + "icon": "", + "version": "1.0", + "address": "localhost", + "minecraftVersion": "1.20.1", + "discord": { + "shortId": "Test", + "largeImageText": "", + "largeImageKey": "" + }, + "mainServer": true, + "autoconnect": true, + "modules": [ + ] } ]