Fix autoshutdown to check Hytale players without RCON
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:
2026-01-15 14:24:05 +01:00
parent a518bb2b7f
commit df4200d425

View File

@@ -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;
}