Skip to content

Commit

Permalink
Fix error in auto-tk-warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Smyth committed Jan 28, 2021
1 parent b5fb12e commit 90540f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions squad-server/plugins/auto-tk-warn.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export default class AutoTKWarn extends BasePlugin {
}

async onTeamkill(info) {
if (!info.attacker) return;

await this.server.rcon.warn(info.attacker.steamID, this.options.message);
}
}

0 comments on commit 90540f0

Please sign in to comment.