small cleanup
This commit is contained in:
parent
f5a9769cc6
commit
2970a8781a
1 changed files with 1 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue