Implemented & Adapted RobGob69's Server ControlPanel (#568)

This commit is contained in:
Josh Shippam
2023-01-30 22:27:20 +00:00
committed by GitHub
parent 32947bbd15
commit 0754b24aa7
8 changed files with 1750 additions and 1 deletions
@@ -16,6 +16,7 @@ object ConfigLoader {
val obj = JSONObject(out)
if (obj.has("server_name")) GameConstants.SERVER_NAME = obj.getString("server_name")
if (obj.has("server_test_version")) GameConstants.TEST_VERSION = obj.getDouble("server_test_version")
if (obj.has("gui_enabled")) GameConstants.GUI_ENABLED = obj.getBoolean("gui_enabled")
if (obj.has("website_link")) GameConstants.WEBSITE_LINK = obj.getString("website_link")
if (obj.has("server_debug")) GameConstants.SERVER_DEBUG = obj.getBoolean("server_debug")
if (obj.has("file_server")) GameConstants.FILE_SERVER = obj.getBoolean("file_server")