From 2a2a09caa92cfbe1b15ea2b6fa5cccdfe7d21fa8 Mon Sep 17 00:00:00 2001 From: SeanWalsh95 Date: Tue, 12 Jul 2022 15:28:47 -0400 Subject: [PATCH] prefer camelCase with JS --- squad-server/plugins/auto-tk-warn.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/squad-server/plugins/auto-tk-warn.js b/squad-server/plugins/auto-tk-warn.js index 17d6115..44c7744 100644 --- a/squad-server/plugins/auto-tk-warn.js +++ b/squad-server/plugins/auto-tk-warn.js @@ -11,17 +11,17 @@ export default class AutoTKWarn extends BasePlugin { static get optionsSpecification() { return { - attacker_message: { + attackerMessage: { required: false, description: 'The message to warn attacking players with.', default: 'Please apologise for ALL TKs in ALL chat!' }, - warn_victim: { + warnVictim: { required: false, description: 'Should we nottify the the victim, telling them that they were teamkilled via a warning message', default: false }, - victim_message: { + victimMessage: { required: false, description: 'The message that will be sent to the victim', default: 'You were killed by your own team.' @@ -45,10 +45,10 @@ export default class AutoTKWarn extends BasePlugin { async onTeamkill(info) { if (info.attacker) { - this.server.rcon.warn(info.attacker.steamID, this.options.attacker_message); + this.server.rcon.warn(info.attacker.steamID, this.options.attackerMessage); } - if (this.options.warn_victim && info.victim) { - this.server.rcon.warn(info.victim.steamID, this.options.victim_message); + if (this.options.warnVictim && info.victim) { + this.server.rcon.warn(info.victim.steamID, this.options.victimMessage); } } }