moved event API stuff around

finally fixed threading issue (which actually had to do with IW4x log outputs being out of sync (not an issue with my code). What a lot of headache over something that wasn't my fault.
This commit is contained in:
RaidMax
2018-08-30 20:53:00 -05:00
parent bbefd53db4
commit 46bdc2ac33
25 changed files with 254 additions and 164 deletions

View File

@ -10,7 +10,7 @@ const plugin = {
checkForVpn(origin) {
let exempt = false;
// prevent players that are exempt from being kicked
this.vpnExceptionIds.forEach(function(id) {
this.vpnExceptionIds.forEach(function (id) {
if (id === origin.ClientId) {
exempt = true;
return false;
@ -48,7 +48,7 @@ const plugin = {
onEventAsync(gameEvent, server) {
// connect event
if (gameEvent.Type === 3) {
this.checkForVpn(gameEvent.Origin)
this.checkForVpn(gameEvent.Origin);
}
},
@ -57,7 +57,7 @@ const plugin = {
this.logger = manager.GetLogger();
},
onUnloadAsync() {},
onUnloadAsync() { },
onTickAsync(server) {}
}
onTickAsync(server) { }
};