mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 18:23: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.warn = (steamid, msg) => { this.server.rcon.warn(steamid, msg); };
|
||||
|
||||
process.on('uncaughtException', function (err) {
|
||||
this.savePersistentData();
|
||||
throw err;
|
||||
});
|
||||
process.on('uncaughtException', this.savePersistentData);
|
||||
}
|
||||
|
||||
async mount() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user