diff --git a/app/docker_utils.py b/app/docker_utils.py index 0491ce7..e1f6ee4 100644 --- a/app/docker_utils.py +++ b/app/docker_utils.py @@ -90,6 +90,7 @@ def start_server(username): "EULA": "TRUE", "SERVER_PORT": ports[0], "ENABLE_RCON": "TRUE", + "USE_AIKAR_FLAGS": "TRUE", "MOTD": f"Serwer użytkownika §9{username}", "TYPE": server_type, "VERSION": server_version, @@ -106,6 +107,18 @@ def start_server(username): "MAX_MEMORY": "4G" } + if server_config["andus-drasl"]: + drasl_args = ( + "-Dminecraft.api.env=custom " + "-Dminecraft.api.auth.host=https://drasl.andus.ovh/auth " + "-Dminecraft.api.account.host=https://drasl.andus.ovh/account " + "-Dminecraft.api.session.host=https://drasl.andus.ovh/session " + "-Dminecraft.api.services.host=https://drasl.andus.ovh/services" + ) + environment["JVM_OPTS"] = drasl_args + print(f"server {username} uses drasl {drasl_args}") + print(f"env: {environment}") + client.containers.run( "itzg/minecraft-server", detach=True, diff --git a/app/static/ads/iWantYourDonation.png b/app/static/ads/iWantYourDonation.png new file mode 100644 index 0000000..b3d805f Binary files /dev/null and b/app/static/ads/iWantYourDonation.png differ diff --git a/app/static/ads/mcPanelPro.png b/app/static/ads/mcPanelPro.png new file mode 100644 index 0000000..c5f88e1 Binary files /dev/null and b/app/static/ads/mcPanelPro.png differ diff --git a/app/static/js/config.js b/app/static/js/config.js index aaf9ee4..832f982 100644 --- a/app/static/js/config.js +++ b/app/static/js/config.js @@ -14,6 +14,7 @@ function loadConfig() { document.getElementById("allow-nether").checked = cfg["allow-nether"]; document.getElementById("max-build-height").value = cfg["max-build-height"]; document.getElementById("view-distance").value = cfg["view-distance"]; + document.getElementById("andus-drasl").value = cfg["andus-drasl"] }) .catch(err => { console.error("Błąd wczytywania konfiguracji: ", err); @@ -35,7 +36,8 @@ function saveConfig() { spawn_animals: document.getElementById("spawn-animals").checked, allow_nether: document.getElementById("allow-nether").checked, max_build_height: document.getElementById("max-build-height").value, - view_distance: document.getElementById("view-distance").value + view_distance: document.getElementById("view-distance").value, + andus_drasl: document.getElementById("andus-drasl").value }; fetch('/api/config', { diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 90873c8..3aa0482 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -68,8 +68,8 @@
Wersja: v0.3
+Wersja: v0.3.1