Merge pull request #142 from milutinke/master

Intervalled Broadcasts plugin causes a crash
This commit is contained in:
Thomas Smyth 2021-02-25 20:32:20 +00:00 committed by GitHub
commit c8a26544de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,6 @@ export default class IntervalledBroadcasts extends BasePlugin {
async broadcast() {
await this.server.rcon.broadcast(this.options.broadcasts[0]);
this.broadcasts.push(this.options.broadcasts.shift());
this.options.broadcasts.push(this.options.broadcasts.shift());
}
}