small cleanup

This commit is contained in:
1e99 2025-07-21 20:50:35 +02:00
parent f5a9769cc6
commit 2970a8781a

View file

@ -32,11 +32,7 @@ export default class PlayerTracker {
this.#players.addListener("player-remove", this.#playerRemove.bind(this))
this.#trackInterval = setInterval(this.#track.bind(this), 1_000)
this.#client.addListener("end", this.#stop.bind(this))
}
#stop() {
clearInterval(this.#trackInterval)
this.#client.addListener("end", () => clearInterval(this.#trackInterval))
}
#playerAdd(player) {