mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 20:43:52 -06:00
fix: savePersistentData is not a function
This commit is contained in:
parent
b19310aa20
commit
6477714279
@ -193,10 +193,7 @@ export default class MapVote extends DiscordBasePlugin {
|
|||||||
this.broadcast = (msg) => { this.server.rcon.broadcast(msg); };
|
this.broadcast = (msg) => { this.server.rcon.broadcast(msg); };
|
||||||
this.warn = (steamid, msg) => { this.server.rcon.warn(steamid, msg); };
|
this.warn = (steamid, msg) => { this.server.rcon.warn(steamid, msg); };
|
||||||
|
|
||||||
process.on('uncaughtException', function (err) {
|
process.on('uncaughtException', this.savePersistentData);
|
||||||
this.savePersistentData();
|
|
||||||
throw err;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async mount() {
|
async mount() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user