Halt tick processing if the server isn't able to reach the internet when watchdog is enabled (configurable via server config options connectivity_check_url and connectivity_timeout)

This commit is contained in:
Ceikry
2024-07-18 08:07:35 +00:00
committed by Ryan
parent 53357d20f3
commit 806680517b
6 changed files with 71 additions and 13 deletions
+6
View File
@@ -338,5 +338,11 @@ class ServerConstants {
@JvmField
var STARTUP_MOMENT = Calendar.getInstance()
@JvmField
var CONNECTIVITY_CHECK_URL = "https://google.com,https://2009scape.org"
@JvmField
var CONNECTIVITY_TIMEOUT = 500
}
}