Fix autoshutdown to check Hytale players without RCON
All checks were successful
Deploy GSM / deploy (push) Successful in 25s
All checks were successful
Deploy GSM / deploy (push) Successful in 25s
Hytale uses log parsing instead of RCON, so add explicit check for server.type === 'hytale' to enable player count checking. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,8 +45,9 @@ async function checkServers() {
|
||||
}
|
||||
|
||||
// Get player count
|
||||
// Some servers use RCON, others use log parsing (like Hytale)
|
||||
let playerCount = 0;
|
||||
if (server.rconPassword) {
|
||||
if (server.rconPassword || server.type === 'hytale') {
|
||||
const players = await getPlayers(server);
|
||||
playerCount = players.online || 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user