We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 910ab7d commit 7842a7dCopy full SHA for 7842a7d
src/helpers/serverUPSHandler.ts
@@ -67,12 +67,18 @@ class UPSManager {
67
Object.keys(this.servers).forEach((serverKey) => {
68
if (this.servers[serverKey]?.discordid === server.discordid)
69
this.servers[serverKey].playercount++;
70
+ if (this.servers[serverKey] == 1) {
71
+ rcon.rconCommand("/sc game.tick_paused = true", server.discordid)
72
+ }
73
});
74
}
75
if (line.type === "leave") {
76
77
78
this.servers[serverKey].playercount--;
79
+ if (this.servers[serverKey] == 0) {
80
81
82
83
84
0 commit comments