From 50ecac18aa17ddc2fc1ee21602c4631444f45a0e Mon Sep 17 00:00:00 2001
From: Adam Szerszenowicz <70147389+Pogromca-SCP@users.noreply.github.com>
Date: Thu, 21 Nov 2024 23:10:45 +0100
Subject: [PATCH] Fixed in-code docs
---
CHANGELOG.md | 6 +
SLCommandScript.Core/Constants.cs | 2 +-
.../Iterables/ListIterable.cs | 2 +-
.../Iterables/Providers/Ranges.cs | 2 +-
SLCommandScript.Core/Language/Parser.cs | 2 +-
SLCommandScript.Core/Language/TokenType.cs | 55 +++
.../SLCommandScript.Core.csproj | 2 +-
.../Events/FileScriptsEventHandler.cs | 436 +++++++++---------
SLCommandScript/Plugin.cs | 2 +-
9 files changed, 294 insertions(+), 215 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 83886e4..41ca8b5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [1.0.2]- 2024-11-21
+
+### Fixed
+
+- Fixed invalid or missing in-code documentation.
+
## [1.0.1] - 2024-10-18
### Fixed
diff --git a/SLCommandScript.Core/Constants.cs b/SLCommandScript.Core/Constants.cs
index b15f4e7..f2e515b 100644
--- a/SLCommandScript.Core/Constants.cs
+++ b/SLCommandScript.Core/Constants.cs
@@ -13,7 +13,7 @@ public static class Constants
///
/// Contains current project version.
///
- public const string ProjectVersion = "1.0.1";
+ public const string ProjectVersion = "1.0.2";
///
/// Contains project author.
diff --git a/SLCommandScript.Core/Iterables/ListIterable.cs b/SLCommandScript.Core/Iterables/ListIterable.cs
index 708cbdd..d33d3be 100644
--- a/SLCommandScript.Core/Iterables/ListIterable.cs
+++ b/SLCommandScript.Core/Iterables/ListIterable.cs
@@ -103,7 +103,7 @@ public ListIterable(Func> source, Action
/// Creates new predefined list iterable.
///
- /// Objects to insert into wrapped list.
+ /// Objects to insert into wrapped list.
/// Variable mapper to use to load variables.
public ListIterable(IEnumerable items, Action, TItem> mapper)
{
diff --git a/SLCommandScript.Core/Iterables/Providers/Ranges.cs b/SLCommandScript.Core/Iterables/Providers/Ranges.cs
index c6ce580..813531b 100644
--- a/SLCommandScript.Core/Iterables/Providers/Ranges.cs
+++ b/SLCommandScript.Core/Iterables/Providers/Ranges.cs
@@ -21,7 +21,7 @@ public static IIterable StandardRange(int start, int end) =>
/// Loads number value and inserts it into a dictionary.
///
/// Dictionary to insert value into.
- /// Number value to load.
+ /// Number value to load.
/// When provided object is .
public static void LoadVariables(IDictionary targetVars, int number) => targetVars["i"] = number.ToString();
diff --git a/SLCommandScript.Core/Language/Parser.cs b/SLCommandScript.Core/Language/Parser.cs
index dd64d1c..f9712c4 100644
--- a/SLCommandScript.Core/Language/Parser.cs
+++ b/SLCommandScript.Core/Language/Parser.cs
@@ -128,7 +128,7 @@ public Expr Parse(IList tokens)
///
/// Attempts to match specific token type.
///
- /// Token type to match.
+ /// Token type to match.
/// if token type was matched, otherwise.
private bool Match(TokenType type)
{
diff --git a/SLCommandScript.Core/Language/TokenType.cs b/SLCommandScript.Core/Language/TokenType.cs
index ef44006..5b74b4f 100644
--- a/SLCommandScript.Core/Language/TokenType.cs
+++ b/SLCommandScript.Core/Language/TokenType.cs
@@ -5,18 +5,73 @@
///
public enum TokenType : byte
{
+ ///
+ /// Empty token type for technical purposes.
+ ///
None,
+
+ ///
+ /// [
+ ///
LeftSquare,
+
+ ///
+ /// ]
+ ///
RightSquare,
+
+ ///
+ /// #?
+ ///
ScopeGuard,
+
+ ///
+ /// $(variable_name)
+ ///
Variable,
+
+ ///
+ /// Represents any text value not matching other token types.
+ ///
Text,
+
+ ///
+ /// -?[0-9]*
+ ///
Number,
+
+ ///
+ /// NUMBER%
+ ///
Percentage,
+
+ ///
+ /// if
+ ///
If,
+
+ ///
+ /// else
+ ///
Else,
+
+ ///
+ /// foreach
+ ///
Foreach,
+
+ ///
+ /// delayby
+ ///
DelayBy,
+
+ ///
+ /// forrandom
+ ///
ForRandom,
+
+ ///
+ /// |
+ ///
Sequence
}
diff --git a/SLCommandScript.Core/SLCommandScript.Core.csproj b/SLCommandScript.Core/SLCommandScript.Core.csproj
index b199e92..8495ca8 100644
--- a/SLCommandScript.Core/SLCommandScript.Core.csproj
+++ b/SLCommandScript.Core/SLCommandScript.Core.csproj
@@ -30,7 +30,7 @@
true
SLCommandScript.Core
Copyright © 2023-present Adam Szerszenowicz
- 1.0.1
+ 1.0.2
1.0.0
diff --git a/SLCommandScript.FileScriptsLoader/Events/FileScriptsEventHandler.cs b/SLCommandScript.FileScriptsLoader/Events/FileScriptsEventHandler.cs
index d98e0e6..cca0390 100644
--- a/SLCommandScript.FileScriptsLoader/Events/FileScriptsEventHandler.cs
+++ b/SLCommandScript.FileScriptsLoader/Events/FileScriptsEventHandler.cs
@@ -43,50 +43,54 @@ private void HandleEvent(ServerEventType eventType, params string[] args)
#region Players
#region Technical
[PluginEvent(ServerEventType.PlayerJoined)]
- private void OnPlayerJoin(PlayerJoinedEvent args) => HandleEvent(ServerEventType.PlayerJoined, "PlayerJoined", args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerJoin(PlayerJoinedEvent args) => HandleEvent(ServerEventType.PlayerJoined, nameof(ServerEventType.PlayerJoined), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerLeft)]
- private void OnPlayerLeave(PlayerLeftEvent args) => HandleEvent(ServerEventType.PlayerLeft, "PlayerLeft", args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerLeave(PlayerLeftEvent args) => HandleEvent(ServerEventType.PlayerLeft, nameof(ServerEventType.PlayerLeft), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerBanned)]
- private void OnPlayerBanned(PlayerBannedEvent args) => HandleEvent(ServerEventType.PlayerBanned, "PlayerBanned", args.Player.Nickname, args.Reason);
+ private void OnPlayerBanned(PlayerBannedEvent args) => HandleEvent(ServerEventType.PlayerBanned, nameof(ServerEventType.PlayerBanned), args.Player.Nickname, args.Reason);
[PluginEvent(ServerEventType.PlayerKicked)]
- private void OnPlayerKicked(PlayerKickedEvent args) => HandleEvent(ServerEventType.PlayerKicked, "PlayerKicked", args.Player.PlayerId.ToString(), args.Player.DisplayNickname,
- args.Reason);
+ private void OnPlayerKicked(PlayerKickedEvent args) => HandleEvent(ServerEventType.PlayerKicked, nameof(ServerEventType.PlayerKicked), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname, args.Reason);
[PluginEvent(ServerEventType.PlayerCheaterReport)]
- private void OnCheaterReport(PlayerCheaterReportEvent args) => HandleEvent(ServerEventType.PlayerCheaterReport, "PlayerCheaterReport", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname, args.Reason);
+ private void OnCheaterReport(PlayerCheaterReportEvent args) => HandleEvent(ServerEventType.PlayerCheaterReport, nameof(ServerEventType.PlayerCheaterReport),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname, args.Reason);
[PluginEvent(ServerEventType.PlayerChangeRole)]
- private void OnChangeRole(PlayerChangeRoleEvent args) => HandleEvent(ServerEventType.PlayerChangeRole, "PlayerChangeRole", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.OldRole.RoleTypeId.ToString(), args.NewRole.ToString(), args.ChangeReason.ToString());
+ private void OnChangeRole(PlayerChangeRoleEvent args) => HandleEvent(ServerEventType.PlayerChangeRole, nameof(ServerEventType.PlayerChangeRole),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.OldRole.RoleTypeId.ToString(), args.NewRole.ToString(), args.ChangeReason.ToString());
[PluginEvent(ServerEventType.PlayerPreauth)]
- private void OnPreauth(PlayerPreauthEvent args) => HandleEvent(ServerEventType.PlayerPreauth, "PlayerPreauth", args.Region);
+ private void OnPreauth(PlayerPreauthEvent args) => HandleEvent(ServerEventType.PlayerPreauth, nameof(ServerEventType.PlayerPreauth), args.Region);
[PluginEvent(ServerEventType.PlayerGetGroup)]
- private void OnPlayerChangeGroup(PlayerGetGroupEvent args) => HandleEvent(ServerEventType.PlayerGetGroup, "PlayerGetGroup", args.UserId, args.Group.BadgeText);
+ private void OnPlayerChangeGroup(PlayerGetGroupEvent args) => HandleEvent(ServerEventType.PlayerGetGroup, nameof(ServerEventType.PlayerGetGroup), args.UserId,
+ args.Group.BadgeText);
[PluginEvent(ServerEventType.PlayerReport)]
- private void OnReport(PlayerReportEvent args) => HandleEvent(ServerEventType.PlayerReport, "PlayerReport", args.Player.PlayerId.ToString(), args.Player.DisplayNickname,
- args.Target.PlayerId.ToString(), args.Target.DisplayNickname, args.Reason);
+ private void OnReport(PlayerReportEvent args) => HandleEvent(ServerEventType.PlayerReport, nameof(ServerEventType.PlayerReport), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname, args.Reason);
[PluginEvent(ServerEventType.RagdollSpawn)]
- private void OnRagdollSpawn(RagdollSpawnEvent args) => HandleEvent(ServerEventType.RagdollSpawn, "RagdollSpawn", args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnRagdollSpawn(RagdollSpawnEvent args) => HandleEvent(ServerEventType.RagdollSpawn, nameof(ServerEventType.RagdollSpawn), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerMuted)]
- private void OnPlayerMuted(PlayerMutedEvent args) => HandleEvent(ServerEventType.PlayerMuted, "PlayerMuted", args.Issuer.PlayerId.ToString(), args.Issuer.DisplayNickname,
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerMuted(PlayerMutedEvent args) => HandleEvent(ServerEventType.PlayerMuted, nameof(ServerEventType.PlayerMuted), args.Issuer.PlayerId.ToString(),
+ args.Issuer.DisplayNickname, args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerUnmuted)]
- private void OnPlayerUnmuted(PlayerUnmutedEvent args) => HandleEvent(ServerEventType.PlayerUnmuted, "PlayerUnmuted", args.Issuer.PlayerId.ToString(), args.Issuer.DisplayNickname,
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerUnmuted(PlayerUnmutedEvent args) => HandleEvent(ServerEventType.PlayerUnmuted, nameof(ServerEventType.PlayerUnmuted), args.Issuer.PlayerId.ToString(),
+ args.Issuer.DisplayNickname, args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerCheckReservedSlot)]
- private void OnCheckReservedSlot(PlayerCheckReservedSlotEvent args) => HandleEvent(ServerEventType.PlayerCheckReservedSlot, "PlayerCheckReservedSlot", args.Userid,
- args.HasReservedSlot.ToString());
+ private void OnCheckReservedSlot(PlayerCheckReservedSlotEvent args) => HandleEvent(ServerEventType.PlayerCheckReservedSlot, nameof(ServerEventType.PlayerCheckReservedSlot),
+ args.Userid, args.HasReservedSlot.ToString());
#endregion
#region State
@@ -94,7 +98,7 @@ private void OnCheckReservedSlot(PlayerCheckReservedSlotEvent args) => HandleEve
private void OnPlayerDied(PlayerDeathEvent args)
{
const ServerEventType eventType = ServerEventType.PlayerDeath;
- const string eventName = "PlayerDeath";
+ const string eventName = nameof(ServerEventType.PlayerDeath);
if (args.Attacker is null)
{
@@ -110,7 +114,7 @@ private void OnPlayerDied(PlayerDeathEvent args)
private void OnPlayerChangesSpectatedPlayer(PlayerChangeSpectatorEvent args)
{
const ServerEventType eventType = ServerEventType.PlayerChangeSpectator;
- const string eventName = "PlayerChangeSpectator";
+ const string eventName = nameof(ServerEventType.PlayerChangeSpectator);
if (args.OldTarget is null)
{
@@ -125,16 +129,16 @@ private void OnPlayerChangesSpectatedPlayer(PlayerChangeSpectatorEvent args)
}
[PluginEvent(ServerEventType.PlayerEscape)]
- private void OnPlayerEscaped(PlayerEscapeEvent args) => HandleEvent(ServerEventType.PlayerEscape, "PlayerEscape", args.Player.PlayerId.ToString(), args.Player.DisplayNickname,
- args.NewRole.ToString());
+ private void OnPlayerEscaped(PlayerEscapeEvent args) => HandleEvent(ServerEventType.PlayerEscape, nameof(ServerEventType.PlayerEscape), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname, args.NewRole.ToString());
[PluginEvent(ServerEventType.PlayerHandcuff)]
- private void OnPlayerHandcuffed(PlayerHandcuffEvent args) => HandleEvent(ServerEventType.PlayerHandcuff, "PlayerHandcuff", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
+ private void OnPlayerHandcuffed(PlayerHandcuffEvent args) => HandleEvent(ServerEventType.PlayerHandcuff, nameof(ServerEventType.PlayerHandcuff),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
[PluginEvent(ServerEventType.PlayerRemoveHandcuffs)]
- private void OnPlayerUncuffed(PlayerRemoveHandcuffsEvent args) => HandleEvent(ServerEventType.PlayerRemoveHandcuffs, "PlayerRemoveHandcuffs", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
+ private void OnPlayerUncuffed(PlayerRemoveHandcuffsEvent args) => HandleEvent(ServerEventType.PlayerRemoveHandcuffs, nameof(ServerEventType.PlayerRemoveHandcuffs),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
[PluginEvent(ServerEventType.PlayerDamage)]
private void OnPlayerDamage(PlayerDamageEvent args)
@@ -145,7 +149,7 @@ private void OnPlayerDamage(PlayerDamageEvent args)
}
const ServerEventType eventType = ServerEventType.PlayerDamage;
- const string eventName = "PlayerDamage";
+ const string eventName = nameof(ServerEventType.PlayerDamage);
if (args.Player is null)
{
@@ -158,458 +162,472 @@ private void OnPlayerDamage(PlayerDamageEvent args)
}
[PluginEvent(ServerEventType.PlayerReceiveEffect)]
- private void OnReceiveEffect(PlayerReceiveEffectEvent args) => HandleEvent(ServerEventType.PlayerReceiveEffect, "PlayerReceiveEffect", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Effect.Classification.ToString(), args.Intensity.ToString(), args.Duration.ToString());
+ private void OnReceiveEffect(PlayerReceiveEffectEvent args) => HandleEvent(ServerEventType.PlayerReceiveEffect, nameof(ServerEventType.PlayerReceiveEffect),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Effect.Classification.ToString(), args.Intensity.ToString(), args.Duration.ToString());
[PluginEvent(ServerEventType.PlayerSpawn)]
- private void OnSpawn(PlayerSpawnEvent args) => HandleEvent(ServerEventType.PlayerSpawn, "PlayerSpawn", args.Player.PlayerId.ToString(), args.Player.DisplayNickname,
- args.Role.ToString());
+ private void OnSpawn(PlayerSpawnEvent args) => HandleEvent(ServerEventType.PlayerSpawn, nameof(ServerEventType.PlayerSpawn), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname, args.Role.ToString());
[PluginEvent(ServerEventType.PlayerEnterPocketDimension)]
- private void OnPlayerEnterPocketDimension(PlayerEnterPocketDimensionEvent args) => HandleEvent(ServerEventType.PlayerEnterPocketDimension, "PlayerEnterPocketDimension",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerEnterPocketDimension(PlayerEnterPocketDimensionEvent args) => HandleEvent(ServerEventType.PlayerEnterPocketDimension,
+ nameof(ServerEventType.PlayerEnterPocketDimension), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerExitPocketDimension)]
- private void OnPlayerExitPocketDimension(PlayerExitPocketDimensionEvent args) => HandleEvent(ServerEventType.PlayerExitPocketDimension, "PlayerExitPocketDimension",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.IsSuccessful.ToString());
+ private void OnPlayerExitPocketDimension(PlayerExitPocketDimensionEvent args) => HandleEvent(ServerEventType.PlayerExitPocketDimension,
+ nameof(ServerEventType.PlayerExitPocketDimension), args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.IsSuccessful.ToString());
#endregion
#region Environment
[PluginEvent(ServerEventType.PlayerActivateGenerator)]
- private void OnPlayerActivateGenerator(PlayerActivateGeneratorEvent args) => HandleEvent(ServerEventType.PlayerActivateGenerator, "PlayerActivateGenerator",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerActivateGenerator(PlayerActivateGeneratorEvent args) => HandleEvent(ServerEventType.PlayerActivateGenerator,
+ nameof(ServerEventType.PlayerActivateGenerator), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerUsingIntercom)]
- private void OnPlayerUsingIntercom(PlayerUsingIntercomEvent args) => HandleEvent(ServerEventType.PlayerUsingIntercom, "PlayerUsingIntercom", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.IntercomState.ToString());
+ private void OnPlayerUsingIntercom(PlayerUsingIntercomEvent args) => HandleEvent(ServerEventType.PlayerUsingIntercom, nameof(ServerEventType.PlayerUsingIntercom),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.IntercomState.ToString());
[PluginEvent(ServerEventType.PlayerCloseGenerator)]
- private void OnPlayerClosesGenerator(PlayerCloseGeneratorEvent args) => HandleEvent(ServerEventType.PlayerCloseGenerator, "PlayerCloseGenerator", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnPlayerClosesGenerator(PlayerCloseGeneratorEvent args) => HandleEvent(ServerEventType.PlayerCloseGenerator, nameof(ServerEventType.PlayerCloseGenerator),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerDamagedShootingTarget)]
- private void OnPlayerDamagedShootingTarget(PlayerDamagedShootingTargetEvent args) => HandleEvent(ServerEventType.PlayerDamagedShootingTarget, "PlayerDamagedShootingTarget",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.DamageAmount.ToString());
+ private void OnPlayerDamagedShootingTarget(PlayerDamagedShootingTargetEvent args) => HandleEvent(ServerEventType.PlayerDamagedShootingTarget,
+ nameof(ServerEventType.PlayerDamagedShootingTarget), args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.DamageAmount.ToString());
[PluginEvent(ServerEventType.PlayerDamagedWindow)]
- private void OnPlayerDamagedWindow(PlayerDamagedWindowEvent args) => HandleEvent(ServerEventType.PlayerDamagedWindow, "PlayerDamagedWindow", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.DamageAmount.ToString());
+ private void OnPlayerDamagedWindow(PlayerDamagedWindowEvent args) => HandleEvent(ServerEventType.PlayerDamagedWindow, nameof(ServerEventType.PlayerDamagedWindow),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.DamageAmount.ToString());
[PluginEvent(ServerEventType.PlayerDeactivatedGenerator)]
- private void OnPlayerDeactivatedGenerator(PlayerDeactivatedGeneratorEvent args) => HandleEvent(ServerEventType.PlayerDeactivatedGenerator, "PlayerDeactivatedGenerator",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerDeactivatedGenerator(PlayerDeactivatedGeneratorEvent args) => HandleEvent(ServerEventType.PlayerDeactivatedGenerator,
+ nameof(ServerEventType.PlayerDeactivatedGenerator), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerOpenGenerator)]
- private void OnPlayerOpenedGenerator(PlayerOpenGeneratorEvent args) => HandleEvent(ServerEventType.PlayerOpenGenerator, "PlayerOpenGenerator", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnPlayerOpenedGenerator(PlayerOpenGeneratorEvent args) => HandleEvent(ServerEventType.PlayerOpenGenerator, nameof(ServerEventType.PlayerOpenGenerator),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerInteractShootingTarget)]
- private void OnInteractWithShootingTarget(PlayerInteractShootingTargetEvent args) => HandleEvent(ServerEventType.PlayerInteractShootingTarget, "PlayerInteractShootingTarget",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnInteractWithShootingTarget(PlayerInteractShootingTargetEvent args) => HandleEvent(ServerEventType.PlayerInteractShootingTarget,
+ nameof(ServerEventType.PlayerInteractShootingTarget), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerInteractLocker)]
- private void OnInteractWithLocker(PlayerInteractLockerEvent args) => HandleEvent(ServerEventType.PlayerInteractLocker, "PlayerInteractLocker", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnInteractWithLocker(PlayerInteractLockerEvent args) => HandleEvent(ServerEventType.PlayerInteractLocker, nameof(ServerEventType.PlayerInteractLocker),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerInteractElevator)]
- private void OnInteractWithElevator(PlayerInteractElevatorEvent args) => HandleEvent(ServerEventType.PlayerInteractElevator, "PlayerInteractElevator",
+ private void OnInteractWithElevator(PlayerInteractElevatorEvent args) => HandleEvent(ServerEventType.PlayerInteractElevator, nameof(ServerEventType.PlayerInteractElevator),
args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerUnlockGenerator)]
- private void OnUnlockGenerator(PlayerUnlockGeneratorEvent args) => HandleEvent(ServerEventType.PlayerUnlockGenerator, "PlayerUnlockGenerator", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnUnlockGenerator(PlayerUnlockGeneratorEvent args) => HandleEvent(ServerEventType.PlayerUnlockGenerator, nameof(ServerEventType.PlayerUnlockGenerator),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerInteractDoor)]
- private void OnPlayerInteractDoor(PlayerInteractDoorEvent args) => HandleEvent(ServerEventType.PlayerInteractDoor, "PlayerInteractDoor", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnPlayerInteractDoor(PlayerInteractDoorEvent args) => HandleEvent(ServerEventType.PlayerInteractDoor, nameof(ServerEventType.PlayerInteractDoor),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerInteractGenerator)]
- private void OnPlayerInteractGenerator(PlayerInteractGeneratorEvent args) => HandleEvent(ServerEventType.PlayerInteractGenerator, "PlayerInteractGenerator",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerInteractGenerator(PlayerInteractGeneratorEvent args) => HandleEvent(ServerEventType.PlayerInteractGenerator,
+ nameof(ServerEventType.PlayerInteractGenerator), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
#endregion
#region Weapons
[PluginEvent(ServerEventType.PlayerAimWeapon)]
- private void OnPlayerAimsWeapon(PlayerAimWeaponEvent args) => HandleEvent(ServerEventType.PlayerAimWeapon, "PlayerAimWeapon", args.IsAiming.ToString(),
- args.Firearm.ItemTypeId.ToString(), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerAimsWeapon(PlayerAimWeaponEvent args) => HandleEvent(ServerEventType.PlayerAimWeapon, nameof(ServerEventType.PlayerAimWeapon),
+ args.IsAiming.ToString(), args.Firearm.ItemTypeId.ToString(), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerDryfireWeapon)]
- private void OnPlayerDryfireWeapon(PlayerDryfireWeaponEvent args) => HandleEvent(ServerEventType.PlayerDryfireWeapon, "PlayerDryfireWeapon", args.Firearm.ItemTypeId.ToString(),
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerDryfireWeapon(PlayerDryfireWeaponEvent args) => HandleEvent(ServerEventType.PlayerDryfireWeapon, nameof(ServerEventType.PlayerDryfireWeapon),
+ args.Firearm.ItemTypeId.ToString(), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerReloadWeapon)]
- private void OnReloadWeapon(PlayerReloadWeaponEvent args) => HandleEvent(ServerEventType.PlayerReloadWeapon, "PlayerReloadWeapon", args.Firearm.ItemTypeId.ToString(),
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnReloadWeapon(PlayerReloadWeaponEvent args) => HandleEvent(ServerEventType.PlayerReloadWeapon, nameof(ServerEventType.PlayerReloadWeapon),
+ args.Firearm.ItemTypeId.ToString(), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerShotWeapon)]
- private void OnShotWeapon(PlayerShotWeaponEvent args) => HandleEvent(ServerEventType.PlayerShotWeapon, "PlayerShotWeapon", args.Firearm.ItemTypeId.ToString(),
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnShotWeapon(PlayerShotWeaponEvent args) => HandleEvent(ServerEventType.PlayerShotWeapon, nameof(ServerEventType.PlayerShotWeapon),
+ args.Firearm.ItemTypeId.ToString(), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerUnloadWeapon)]
- private void OnUnloadWeapon(PlayerUnloadWeaponEvent args) => HandleEvent(ServerEventType.PlayerUnloadWeapon, "PlayerUnloadWeapon", args.Firearm.ItemTypeId.ToString(),
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnUnloadWeapon(PlayerUnloadWeaponEvent args) => HandleEvent(ServerEventType.PlayerUnloadWeapon, nameof(ServerEventType.PlayerUnloadWeapon),
+ args.Firearm.ItemTypeId.ToString(), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
#endregion
#region Items
[PluginEvent(ServerEventType.PlayerCancelUsingItem)]
- private void OnPlayerCancelsUsingItem(PlayerCancelUsingItemEvent args) => HandleEvent(ServerEventType.PlayerCancelUsingItem, "PlayerCancelUsingItem",
+ private void OnPlayerCancelsUsingItem(PlayerCancelUsingItemEvent args) => HandleEvent(ServerEventType.PlayerCancelUsingItem, nameof(ServerEventType.PlayerCancelUsingItem),
args.Item.ItemTypeId.ToString(), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerChangeItem)]
- private void OnPlayerChangesItem(PlayerChangeItemEvent args) => HandleEvent(ServerEventType.PlayerChangeItem, "PlayerChangeItem", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnPlayerChangesItem(PlayerChangeItemEvent args) => HandleEvent(ServerEventType.PlayerChangeItem, nameof(ServerEventType.PlayerChangeItem),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerDropAmmo)]
- private void OnPlayerDropAmmo(PlayerDropAmmoEvent args) => HandleEvent(ServerEventType.PlayerDropAmmo, "PlayerDropAmmo", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.ToString(), args.Amount.ToString());
+ private void OnPlayerDropAmmo(PlayerDropAmmoEvent args) => HandleEvent(ServerEventType.PlayerDropAmmo, nameof(ServerEventType.PlayerDropAmmo),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.ToString(), args.Amount.ToString());
[PluginEvent(ServerEventType.PlayerDropItem)]
- private void OnPlayerDropItem(PlayerDropItemEvent args) => HandleEvent(ServerEventType.PlayerDropItem, "PlayerDropItem", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.ItemTypeId.ToString());
+ private void OnPlayerDropItem(PlayerDropItemEvent args) => HandleEvent(ServerEventType.PlayerDropItem, nameof(ServerEventType.PlayerDropItem),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.ItemTypeId.ToString());
[PluginEvent(ServerEventType.PlayerDroppedAmmo)]
- private void OnPlayerDroppedAmmo(PlayerDroppedAmmoEvent args) => HandleEvent(ServerEventType.PlayerDroppedAmmo, "PlayerDroppedAmmo", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.Info.ItemId.ToString(), args.Amount.ToString());
+ private void OnPlayerDroppedAmmo(PlayerDroppedAmmoEvent args) => HandleEvent(ServerEventType.PlayerDroppedAmmo, nameof(ServerEventType.PlayerDroppedAmmo),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.Info.ItemId.ToString(), args.Amount.ToString());
[PluginEvent(ServerEventType.PlayerDropedpItem)]
- private void OnPlayerDroppedItem(PlayerDroppedItemEvent args) => HandleEvent(ServerEventType.PlayerDropedpItem, "PlayerDroppedItem", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
+ private void OnPlayerDroppedItem(PlayerDroppedItemEvent args) => HandleEvent(ServerEventType.PlayerDropedpItem, nameof(ServerEventType.PlayerDropedpItem),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
[PluginEvent(ServerEventType.PlayerPickupAmmo)]
- private void OnPlayerPickupAmmo(PlayerPickupAmmoEvent args) => HandleEvent(ServerEventType.PlayerPickupAmmo, "PlayerPickupAmmo", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
+ private void OnPlayerPickupAmmo(PlayerPickupAmmoEvent args) => HandleEvent(ServerEventType.PlayerPickupAmmo, nameof(ServerEventType.PlayerPickupAmmo),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
[PluginEvent(ServerEventType.PlayerPickupArmor)]
- private void OnPlayerPickupArmor(PlayerPickupArmorEvent args) => HandleEvent(ServerEventType.PlayerPickupArmor, "PlayerPickupArmor", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
+ private void OnPlayerPickupArmor(PlayerPickupArmorEvent args) => HandleEvent(ServerEventType.PlayerPickupArmor, nameof(ServerEventType.PlayerPickupArmor),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
[PluginEvent(ServerEventType.PlayerPickupScp330)]
- private void OnPlayerPickupScp330(PlayerPickupScp330Event args) => HandleEvent(ServerEventType.PlayerPickupScp330, "PlayerPickupScp330", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
+ private void OnPlayerPickupScp330(PlayerPickupScp330Event args) => HandleEvent(ServerEventType.PlayerPickupScp330, nameof(ServerEventType.PlayerPickupScp330),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
[PluginEvent(ServerEventType.PlayerSearchPickup)]
- private void OnSearchPickup(PlayerSearchPickupEvent args) => HandleEvent(ServerEventType.PlayerSearchPickup, "PlayerSearchPickup", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
+ private void OnSearchPickup(PlayerSearchPickupEvent args) => HandleEvent(ServerEventType.PlayerSearchPickup, nameof(ServerEventType.PlayerSearchPickup),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
[PluginEvent(ServerEventType.PlayerSearchedPickup)]
- private void OnSearchedPickup(PlayerSearchedPickupEvent args) => HandleEvent(ServerEventType.PlayerSearchedPickup, "PlayerSearchedPickup", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
+ private void OnSearchedPickup(PlayerSearchedPickupEvent args) => HandleEvent(ServerEventType.PlayerSearchedPickup, nameof(ServerEventType.PlayerSearchedPickup),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.Info.ItemId.ToString());
[PluginEvent(ServerEventType.PlayerThrowItem)]
- private void OnThrowItem(PlayerThrowItemEvent args) => HandleEvent(ServerEventType.PlayerThrowItem, "PlayerThrowItem", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.ItemTypeId.ToString());
+ private void OnThrowItem(PlayerThrowItemEvent args) => HandleEvent(ServerEventType.PlayerThrowItem, nameof(ServerEventType.PlayerThrowItem),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.ItemTypeId.ToString());
[PluginEvent(ServerEventType.PlayerToggleFlashlight)]
- private void OnToggleFlashlight(PlayerToggleFlashlightEvent args) => HandleEvent(ServerEventType.PlayerToggleFlashlight, "PlayerToggleFlashlight", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.IsToggled.ToString());
+ private void OnToggleFlashlight(PlayerToggleFlashlightEvent args) => HandleEvent(ServerEventType.PlayerToggleFlashlight, nameof(ServerEventType.PlayerToggleFlashlight),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.IsToggled.ToString());
[PluginEvent(ServerEventType.PlayerUsedItem)]
- private void OnPlayerUsedItem(PlayerUsedItemEvent args) => HandleEvent(ServerEventType.PlayerUsedItem, "PlayerUsedItem", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.ItemTypeId.ToString());
+ private void OnPlayerUsedItem(PlayerUsedItemEvent args) => HandleEvent(ServerEventType.PlayerUsedItem, nameof(ServerEventType.PlayerUsedItem),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.ItemTypeId.ToString());
[PluginEvent(ServerEventType.PlayerUseHotkey)]
- private void OnPlayerUsedHotkey(PlayerUseHotkeyEvent args) => HandleEvent(ServerEventType.PlayerUseHotkey, "PlayerUseHotkey", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Action.ToString());
+ private void OnPlayerUsedHotkey(PlayerUseHotkeyEvent args) => HandleEvent(ServerEventType.PlayerUseHotkey, nameof(ServerEventType.PlayerUseHotkey),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Action.ToString());
[PluginEvent(ServerEventType.PlayerUseItem)]
- private void OnPlayerStartedUsingItem(PlayerUseItemEvent args) => HandleEvent(ServerEventType.PlayerUseItem, "PlayerUseItem", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Item.ItemTypeId.ToString());
+ private void OnPlayerStartedUsingItem(PlayerUseItemEvent args) => HandleEvent(ServerEventType.PlayerUseItem, nameof(ServerEventType.PlayerUseItem),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.ItemTypeId.ToString());
[PluginEvent(ServerEventType.PlayerInteractScp330)]
- private void OnInteractWithScp330(PlayerInteractScp330Event args) => HandleEvent(ServerEventType.PlayerInteractScp330, "PlayerInteractScp330", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnInteractWithScp330(PlayerInteractScp330Event args) => HandleEvent(ServerEventType.PlayerInteractScp330, nameof(ServerEventType.PlayerInteractScp330),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerThrowProjectile)]
- private void OnPlayerThrowProjectile(PlayerThrowProjectileEvent args) => HandleEvent(ServerEventType.PlayerThrowProjectile, "PlayerThrowProjectile",
+ private void OnPlayerThrowProjectile(PlayerThrowProjectileEvent args) => HandleEvent(ServerEventType.PlayerThrowProjectile, nameof(ServerEventType.PlayerThrowProjectile),
args.Thrower.PlayerId.ToString(), args.Thrower.DisplayNickname, args.Item.ItemTypeId.ToString());
[PluginEvent(ServerEventType.PlayerPreCoinFlip)]
- private void OnPlayerPreCoinFlip(PlayerPreCoinFlipEvent args) => HandleEvent(ServerEventType.PlayerPreCoinFlip, "PlayerPreCoinFlip", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnPlayerPreCoinFlip(PlayerPreCoinFlipEvent args) => HandleEvent(ServerEventType.PlayerPreCoinFlip, nameof(ServerEventType.PlayerPreCoinFlip),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerCoinFlip)]
- private void OnPlayerCoinFlip(PlayerCoinFlipEvent args) => HandleEvent(ServerEventType.PlayerCoinFlip, "PlayerCoinFlip", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.IsTails.ToString());
+ private void OnPlayerCoinFlip(PlayerCoinFlipEvent args) => HandleEvent(ServerEventType.PlayerCoinFlip, nameof(ServerEventType.PlayerCoinFlip),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.IsTails.ToString());
#endregion
#region Radio
[PluginEvent(ServerEventType.PlayerChangeRadioRange)]
- private void OnPlayerChangesRadioRange(PlayerChangeRadioRangeEvent args) => HandleEvent(ServerEventType.PlayerChangeRadioRange, "PlayerChangeRadioRange",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Range.ToString());
+ private void OnPlayerChangesRadioRange(PlayerChangeRadioRangeEvent args) => HandleEvent(ServerEventType.PlayerChangeRadioRange,
+ nameof(ServerEventType.PlayerChangeRadioRange), args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Range.ToString());
[PluginEvent(ServerEventType.PlayerRadioToggle)]
- private void OnPlayerRadioToggle(PlayerRadioToggleEvent args) => HandleEvent(ServerEventType.PlayerRadioToggle, "PlayerRadioToggle", args.NewState.ToString(),
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlayerRadioToggle(PlayerRadioToggleEvent args) => HandleEvent(ServerEventType.PlayerRadioToggle, nameof(ServerEventType.PlayerRadioToggle),
+ args.NewState.ToString(), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlayerUsingRadio)]
- private void OnPlayerUsingRadio(PlayerUsingRadioEvent args) => HandleEvent(ServerEventType.PlayerUsingRadio, "PlayerUsingRadio", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnPlayerUsingRadio(PlayerUsingRadioEvent args) => HandleEvent(ServerEventType.PlayerUsingRadio, nameof(ServerEventType.PlayerUsingRadio),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
#endregion
#endregion
#region Decontamination
[PluginEvent(ServerEventType.LczDecontaminationStart)]
- private void OnLczDecontaminationStarts(LczDecontaminationStartEvent args) => HandleEvent(ServerEventType.LczDecontaminationStart, "LczDecontaminationStart");
+ private void OnLczDecontaminationStarts(LczDecontaminationStartEvent args) => HandleEvent(ServerEventType.LczDecontaminationStart,
+ nameof(ServerEventType.LczDecontaminationStart));
[PluginEvent(ServerEventType.LczDecontaminationAnnouncement)]
private void OnAnnounceLczDecontamination(LczDecontaminationAnnouncementEvent args) => HandleEvent(ServerEventType.LczDecontaminationAnnouncement,
- "LczDecontaminationAnnouncement", args.Id.ToString());
+ nameof(ServerEventType.LczDecontaminationAnnouncement), args.Id.ToString());
#endregion
#region Map Generation
[PluginEvent(ServerEventType.MapGenerated)]
- private void OnMapGenerated(MapGeneratedEvent args) => HandleEvent(ServerEventType.MapGenerated, "MapGenerated");
+ private void OnMapGenerated(MapGeneratedEvent args) => HandleEvent(ServerEventType.MapGenerated, nameof(ServerEventType.MapGenerated));
#endregion
#region Items
[PluginEvent(ServerEventType.GrenadeExploded)]
- private void OnGrenadeExploded(GrenadeExplodedEvent args) => HandleEvent(ServerEventType.GrenadeExploded, "GrenadeExploded", args.Grenade.Info.ItemId.ToString());
+ private void OnGrenadeExploded(GrenadeExplodedEvent args) => HandleEvent(ServerEventType.GrenadeExploded, nameof(ServerEventType.GrenadeExploded),
+ args.Grenade.Info.ItemId.ToString());
[PluginEvent(ServerEventType.ItemSpawned)]
- private void OnItemSpawned(ItemSpawnedEvent args) => HandleEvent(ServerEventType.ItemSpawned, "ItemSpawned", args.Item.ToString());
+ private void OnItemSpawned(ItemSpawnedEvent args) => HandleEvent(ServerEventType.ItemSpawned, nameof(ServerEventType.ItemSpawned), args.Item.ToString());
#endregion
#region Environment
[PluginEvent(ServerEventType.GeneratorActivated)]
- private void OnGeneratorActivated(GeneratorActivatedEvent args) => HandleEvent(ServerEventType.GeneratorActivated, "GeneratorActivated");
+ private void OnGeneratorActivated(GeneratorActivatedEvent args) => HandleEvent(ServerEventType.GeneratorActivated, nameof(ServerEventType.GeneratorActivated));
[PluginEvent(ServerEventType.PlaceBlood)]
- private void OnPlaceBlood(PlaceBloodEvent args) => HandleEvent(ServerEventType.PlaceBlood, "PlaceBlood", args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnPlaceBlood(PlaceBloodEvent args) => HandleEvent(ServerEventType.PlaceBlood, nameof(ServerEventType.PlaceBlood), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname);
[PluginEvent(ServerEventType.PlaceBulletHole)]
- private void OnPlaceBulletHole(PlaceBulletHoleEvent args) => HandleEvent(ServerEventType.PlaceBulletHole, "PlaceBulletHole");
+ private void OnPlaceBulletHole(PlaceBulletHoleEvent args) => HandleEvent(ServerEventType.PlaceBulletHole, nameof(ServerEventType.PlaceBulletHole));
#endregion
#region Round Events
[PluginEvent(ServerEventType.RoundEnd)]
- private void OnRoundEnded(RoundEndEvent args) => HandleEvent(ServerEventType.RoundEnd, "RoundEnd", args.LeadingTeam.ToString());
+ private void OnRoundEnded(RoundEndEvent args) => HandleEvent(ServerEventType.RoundEnd, nameof(ServerEventType.RoundEnd), args.LeadingTeam.ToString());
[PluginEvent(ServerEventType.RoundRestart)]
- private void OnRoundRestart(RoundRestartEvent args) => HandleEvent(ServerEventType.RoundRestart, "RoundRestart");
+ private void OnRoundRestart(RoundRestartEvent args) => HandleEvent(ServerEventType.RoundRestart, nameof(ServerEventType.RoundRestart));
[PluginEvent(ServerEventType.RoundStart)]
- private void OnRoundStart(RoundStartEvent args) => HandleEvent(ServerEventType.RoundStart, "RoundStart");
+ private void OnRoundStart(RoundStartEvent args) => HandleEvent(ServerEventType.RoundStart, nameof(ServerEventType.RoundStart));
[PluginEvent(ServerEventType.WaitingForPlayers)]
- private void OnWaitingForPlayers(WaitingForPlayersEvent args) => HandleEvent(ServerEventType.WaitingForPlayers, "WaitingForPlayers");
+ private void OnWaitingForPlayers(WaitingForPlayersEvent args) => HandleEvent(ServerEventType.WaitingForPlayers, nameof(ServerEventType.WaitingForPlayers));
[PluginEvent(ServerEventType.TeamRespawnSelected)]
- private void OnTeamSelected(TeamRespawnSelectedEvent args) => HandleEvent(ServerEventType.TeamRespawnSelected, "TeamRespawnSelected", args.Team.ToString());
+ private void OnTeamSelected(TeamRespawnSelectedEvent args) => HandleEvent(ServerEventType.TeamRespawnSelected, nameof(ServerEventType.TeamRespawnSelected),
+ args.Team.ToString());
[PluginEvent(ServerEventType.TeamRespawn)]
- private void OnTeamRespawn(TeamRespawnEvent args) => HandleEvent(ServerEventType.TeamRespawn, "TeamRespawn", args.Team.ToString(), args.NextWaveMaxSize.ToString());
+ private void OnTeamRespawn(TeamRespawnEvent args) => HandleEvent(ServerEventType.TeamRespawn, nameof(ServerEventType.TeamRespawn), args.Team.ToString(),
+ args.NextWaveMaxSize.ToString());
[PluginEvent(ServerEventType.RoundEndConditionsCheck)]
- private void OnRoundEndConditionsCheck(RoundEndConditionsCheckEvent args) => HandleEvent(ServerEventType.RoundEndConditionsCheck, "RoundEndConditionsCheck");
+ private void OnRoundEndConditionsCheck(RoundEndConditionsCheckEvent args) => HandleEvent(ServerEventType.RoundEndConditionsCheck,
+ nameof(ServerEventType.RoundEndConditionsCheck));
#endregion
#region Warhead
[PluginEvent(ServerEventType.WarheadStart)]
- private void OnWarheadStart(WarheadStartEvent args) => HandleEvent(ServerEventType.WarheadStart, "WarheadStart", args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnWarheadStart(WarheadStartEvent args) => HandleEvent(ServerEventType.WarheadStart, nameof(ServerEventType.WarheadStart), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname);
[PluginEvent(ServerEventType.WarheadStop)]
- private void OnWarheadStop(WarheadStopEvent args) => HandleEvent(ServerEventType.WarheadStop, "WarheadStop", args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnWarheadStop(WarheadStopEvent args) => HandleEvent(ServerEventType.WarheadStop, nameof(ServerEventType.WarheadStop), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname);
[PluginEvent(ServerEventType.WarheadDetonation)]
- private void OnWarheadDetonation(WarheadDetonationEvent args) => HandleEvent(ServerEventType.WarheadDetonation, "WarheadDetonation");
+ private void OnWarheadDetonation(WarheadDetonationEvent args) => HandleEvent(ServerEventType.WarheadDetonation, nameof(ServerEventType.WarheadDetonation));
#endregion
#region Commands
[PluginEvent(ServerEventType.PlayerGameConsoleCommand)]
- private void OnPlayerGameconsoleCommand(PlayerGameConsoleCommandEvent args) => HandleEvent(ServerEventType.PlayerGameConsoleCommand, "PlayerGameConsoleCommand",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Command);
+ private void OnPlayerGameconsoleCommand(PlayerGameConsoleCommandEvent args) => HandleEvent(ServerEventType.PlayerGameConsoleCommand,
+ nameof(ServerEventType.PlayerGameConsoleCommand), args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Command);
[PluginEvent(ServerEventType.RemoteAdminCommand)]
- private void OnRemoteadminCommand(RemoteAdminCommandEvent args) => HandleEvent(ServerEventType.RemoteAdminCommand, "RemoteAdminCommand", args.Command);
+ private void OnRemoteadminCommand(RemoteAdminCommandEvent args) => HandleEvent(ServerEventType.RemoteAdminCommand, nameof(ServerEventType.RemoteAdminCommand),
+ args.Command);
[PluginEvent(ServerEventType.ConsoleCommand)]
- private void OnConsoleCommand(ConsoleCommandEvent args) => HandleEvent(ServerEventType.ConsoleCommand, "ConsoleCommand", args.Command);
+ private void OnConsoleCommand(ConsoleCommandEvent args) => HandleEvent(ServerEventType.ConsoleCommand, nameof(ServerEventType.ConsoleCommand), args.Command);
[PluginEvent(ServerEventType.RemoteAdminCommandExecuted)]
- private void OnRemoteadminCommandExecuted(RemoteAdminCommandExecutedEvent args) => HandleEvent(ServerEventType.RemoteAdminCommandExecuted, "RemoteAdminCommandExecuted",
- args.Command);
+ private void OnRemoteadminCommandExecuted(RemoteAdminCommandExecutedEvent args) => HandleEvent(ServerEventType.RemoteAdminCommandExecuted,
+ nameof(ServerEventType.RemoteAdminCommandExecuted), args.Command);
[PluginEvent(ServerEventType.PlayerGameConsoleCommandExecuted)]
private void OnPlayerGameconsoleCommandExecuted(PlayerGameConsoleCommandExecutedEvent args) => HandleEvent(ServerEventType.PlayerGameConsoleCommandExecuted,
- "PlayerGameConsoleCommandExecuted", args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Command);
+ nameof(ServerEventType.PlayerGameConsoleCommandExecuted), args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Command);
[PluginEvent(ServerEventType.ConsoleCommandExecuted)]
- private void OnConsoleCommandExecuted(ConsoleCommandExecutedEvent args) => HandleEvent(ServerEventType.ConsoleCommandExecuted, "ConsoleCommandExecuted", args.Command);
+ private void OnConsoleCommandExecuted(ConsoleCommandExecutedEvent args) => HandleEvent(ServerEventType.ConsoleCommandExecuted,
+ nameof(ServerEventType.ConsoleCommandExecuted), args.Command);
#endregion
#region SCPs
#region General
[PluginEvent(ServerEventType.CassieAnnouncesScpTermination)]
- private void OnCassieAnnouncScpTermination(CassieAnnouncesScpTerminationEvent args) => HandleEvent(ServerEventType.CassieAnnouncesScpTermination, "CassieAnnouncesScpTermination",
- args.Player.RoleName, args.Announcement);
+ private void OnCassieAnnouncScpTermination(CassieAnnouncesScpTerminationEvent args) => HandleEvent(ServerEventType.CassieAnnouncesScpTermination,
+ nameof(ServerEventType.CassieAnnouncesScpTermination), args.Player.RoleName, args.Announcement);
#endregion
#region 914
[PluginEvent(ServerEventType.Scp914Activate)]
- private void OnScp914Activate(Scp914ActivateEvent args) => HandleEvent(ServerEventType.Scp914Activate, "Scp914Activate", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.KnobSetting.ToString());
+ private void OnScp914Activate(Scp914ActivateEvent args) => HandleEvent(ServerEventType.Scp914Activate, nameof(ServerEventType.Scp914Activate),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.KnobSetting.ToString());
[PluginEvent(ServerEventType.Scp914KnobChange)]
- private void OnScp914KnobChange(Scp914KnobChangeEvent args) => HandleEvent(ServerEventType.Scp914KnobChange, "Scp914KnobChange", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.KnobSetting.ToString());
+ private void OnScp914KnobChange(Scp914KnobChangeEvent args) => HandleEvent(ServerEventType.Scp914KnobChange, nameof(ServerEventType.Scp914KnobChange),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.KnobSetting.ToString());
[PluginEvent(ServerEventType.Scp914UpgradeInventory)]
- private void OnScp914UpgradeInventory(Scp914UpgradeInventoryEvent args) => HandleEvent(ServerEventType.Scp914UpgradeInventory, "Scp914UpgradeInventory",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.ItemTypeId.ToString(), args.KnobSetting.ToString());
+ private void OnScp914UpgradeInventory(Scp914UpgradeInventoryEvent args) => HandleEvent(ServerEventType.Scp914UpgradeInventory,
+ nameof(ServerEventType.Scp914UpgradeInventory), args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.ItemTypeId.ToString(),
+ args.KnobSetting.ToString());
[PluginEvent(ServerEventType.Scp914UpgradePickup)]
- private void OnScp914UpgradePickup(Scp914UpgradePickupEvent args) => HandleEvent(ServerEventType.Scp914UpgradePickup, "Scp914UpgradePickup",
+ private void OnScp914UpgradePickup(Scp914UpgradePickupEvent args) => HandleEvent(ServerEventType.Scp914UpgradePickup, nameof(ServerEventType.Scp914UpgradePickup),
args.Item.Info.ItemId.ToString(), args.KnobSetting.ToString());
[PluginEvent(ServerEventType.Scp914PickupUpgraded)]
- private void OnScp914PickupUpgraded(Scp914PickupUpgradedEvent args) => HandleEvent(ServerEventType.Scp914PickupUpgraded, "Scp914PickupUpgraded",
+ private void OnScp914PickupUpgraded(Scp914PickupUpgradedEvent args) => HandleEvent(ServerEventType.Scp914PickupUpgraded, nameof(ServerEventType.Scp914PickupUpgraded),
args.Item.Info.ItemId.ToString(), args.KnobSetting.ToString());
[PluginEvent(ServerEventType.Scp914InventoryItemUpgraded)]
private void OnScp914InventoryItemUpgraded(Scp914InventoryItemUpgradedEvent args) => HandleEvent(ServerEventType.Scp914InventoryItemUpgraded,
- "Scp914InventoryItemUpgraded", args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.ItemTypeId.ToString(), args.KnobSetting.ToString());
+ nameof(ServerEventType.Scp914InventoryItemUpgraded), args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Item.ItemTypeId.ToString(),
+ args.KnobSetting.ToString());
[PluginEvent(ServerEventType.Scp914ProcessPlayer)]
- private void OnScp914ProcessPlayer(Scp914ProcessPlayerEvent args) => HandleEvent(ServerEventType.Scp914ProcessPlayer, "Scp914ProcessPlayer",
+ private void OnScp914ProcessPlayer(Scp914ProcessPlayerEvent args) => HandleEvent(ServerEventType.Scp914ProcessPlayer, nameof(ServerEventType.Scp914ProcessPlayer),
args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.KnobSetting.ToString());
#endregion
#region 106
[PluginEvent(ServerEventType.Scp106Stalking)]
- private void OnScp106Stalking(Scp106StalkingEvent args) => HandleEvent(ServerEventType.Scp106Stalking, "Scp106Stalking", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp106Stalking(Scp106StalkingEvent args) => HandleEvent(ServerEventType.Scp106Stalking, nameof(ServerEventType.Scp106Stalking),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp106TeleportPlayer)]
- private void OnScp106TeleportPlayer(Scp106TeleportPlayerEvent args) => HandleEvent(ServerEventType.Scp106TeleportPlayer, "Scp106TeleportPlayer",
+ private void OnScp106TeleportPlayer(Scp106TeleportPlayerEvent args) => HandleEvent(ServerEventType.Scp106TeleportPlayer, nameof(ServerEventType.Scp106TeleportPlayer),
args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
#endregion
#region 173
[PluginEvent(ServerEventType.Scp173PlaySound)]
- private void OnScp173PlaySound(Scp173PlaySoundEvent args) => HandleEvent(ServerEventType.Scp173PlaySound, "Scp173PlaySound", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp173PlaySound(Scp173PlaySoundEvent args) => HandleEvent(ServerEventType.Scp173PlaySound, nameof(ServerEventType.Scp173PlaySound),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp173BreakneckSpeeds)]
- private void OnScp173BreakneckSpeeds(Scp173BreakneckSpeedsEvent args) => HandleEvent(ServerEventType.Scp173BreakneckSpeeds, "Scp173BreakneckSpeeds",
+ private void OnScp173BreakneckSpeeds(Scp173BreakneckSpeedsEvent args) => HandleEvent(ServerEventType.Scp173BreakneckSpeeds, nameof(ServerEventType.Scp173BreakneckSpeeds),
args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp173NewObserver)]
- private void OnScp173NewObserver(Scp173NewObserverEvent args) => HandleEvent(ServerEventType.Scp173NewObserver, "Scp173NewObserver", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
+ private void OnScp173NewObserver(Scp173NewObserverEvent args) => HandleEvent(ServerEventType.Scp173NewObserver, nameof(ServerEventType.Scp173NewObserver),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
[PluginEvent(ServerEventType.Scp173SnapPlayer)]
- private void OnScp173SnapPlayer(Scp173SnapPlayerEvent args) => HandleEvent(ServerEventType.Scp173SnapPlayer, "Scp173SnapPlayer", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
+ private void OnScp173SnapPlayer(Scp173SnapPlayerEvent args) => HandleEvent(ServerEventType.Scp173SnapPlayer, nameof(ServerEventType.Scp173SnapPlayer),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
[PluginEvent(ServerEventType.Scp173CreateTantrum)]
- private void OnScp173CreateTantrum(Scp173CreateTantrumEvent args) => HandleEvent(ServerEventType.Scp173CreateTantrum, "Scp173CreateTantrum",
+ private void OnScp173CreateTantrum(Scp173CreateTantrumEvent args) => HandleEvent(ServerEventType.Scp173CreateTantrum, nameof(ServerEventType.Scp173CreateTantrum),
args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
#endregion
#region 939
[PluginEvent(ServerEventType.Scp939CreateAmnesticCloud)]
- private void OnScp939CreateAmnesticCloud(Scp939CreateAmnesticCloudEvent args) => HandleEvent(ServerEventType.Scp939CreateAmnesticCloud, "Scp939CreateAmnesticCloud",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnScp939CreateAmnesticCloud(Scp939CreateAmnesticCloudEvent args) => HandleEvent(ServerEventType.Scp939CreateAmnesticCloud,
+ nameof(ServerEventType.Scp939CreateAmnesticCloud), args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp939Lunge)]
- private void OnScp939Lunge(Scp939LungeEvent args) => HandleEvent(ServerEventType.Scp939Lunge, "Scp939Lunge", args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
+ private void OnScp939Lunge(Scp939LungeEvent args) => HandleEvent(ServerEventType.Scp939Lunge, nameof(ServerEventType.Scp939Lunge), args.Player.PlayerId.ToString(),
+ args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp939Attack)]
- private void OnScp939Attack(Scp939AttackEvent args) => HandleEvent(ServerEventType.Scp939Attack, "Scp939Attack", args.Player.PlayerId.ToString(),
+ private void OnScp939Attack(Scp939AttackEvent args) => HandleEvent(ServerEventType.Scp939Attack, nameof(ServerEventType.Scp939Attack), args.Player.PlayerId.ToString(),
args.Player.DisplayNickname);
#endregion
#region 079
[PluginEvent(ServerEventType.Scp079GainExperience)]
- private void OnScp079GainExperience(Scp079GainExperienceEvent args) => HandleEvent(ServerEventType.Scp079GainExperience, "Scp079GainExperience",
+ private void OnScp079GainExperience(Scp079GainExperienceEvent args) => HandleEvent(ServerEventType.Scp079GainExperience, nameof(ServerEventType.Scp079GainExperience),
args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Amount.ToString(), args.Reason.ToString());
[PluginEvent(ServerEventType.Scp079LevelUpTier)]
- private void OnScp079LevelUpTier(Scp079LevelUpTierEvent args) => HandleEvent(ServerEventType.Scp079LevelUpTier, "Scp079LevelUpTier", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Tier.ToString());
+ private void OnScp079LevelUpTier(Scp079LevelUpTierEvent args) => HandleEvent(ServerEventType.Scp079LevelUpTier, nameof(ServerEventType.Scp079LevelUpTier),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Tier.ToString());
[PluginEvent(ServerEventType.Scp079UseTesla)]
- private void OnScp079UseTesla(Scp079UseTeslaEvent args) => HandleEvent(ServerEventType.Scp079UseTesla, "Scp079UseTesla", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp079UseTesla(Scp079UseTeslaEvent args) => HandleEvent(ServerEventType.Scp079UseTesla, nameof(ServerEventType.Scp079UseTesla),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp079LockdownRoom)]
- private void OnScp079LockdownRoom(Scp079LockdownRoomEvent args) => HandleEvent(ServerEventType.Scp079LockdownRoom, "Scp079LockdownRoom", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Room.Name.ToString());
+ private void OnScp079LockdownRoom(Scp079LockdownRoomEvent args) => HandleEvent(ServerEventType.Scp079LockdownRoom, nameof(ServerEventType.Scp079LockdownRoom),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Room.Name.ToString());
[PluginEvent(ServerEventType.Scp079CancelRoomLockdown)]
- private void OnScp079CancelRoomLockdown(Scp079CancelRoomLockdownEvent args) => HandleEvent(ServerEventType.Scp079CancelRoomLockdown, "Scp079CancelRoomLockdown",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Room.Name.ToString());
+ private void OnScp079CancelRoomLockdown(Scp079CancelRoomLockdownEvent args) => HandleEvent(ServerEventType.Scp079CancelRoomLockdown,
+ nameof(ServerEventType.Scp079CancelRoomLockdown), args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Room.Name.ToString());
[PluginEvent(ServerEventType.Scp079LockDoor)]
- private void OnScp079LockDoor(Scp079LockDoorEvent args) => HandleEvent(ServerEventType.Scp079LockDoor, "Scp079LockDoor", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp079LockDoor(Scp079LockDoorEvent args) => HandleEvent(ServerEventType.Scp079LockDoor, nameof(ServerEventType.Scp079LockDoor),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp079UnlockDoor)]
- private void OnScp079UnLockDoor(Scp079UnlockDoorEvent args) => HandleEvent(ServerEventType.Scp079UnlockDoor, "Scp079UnlockDoor", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp079UnLockDoor(Scp079UnlockDoorEvent args) => HandleEvent(ServerEventType.Scp079UnlockDoor, nameof(ServerEventType.Scp079UnlockDoor),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp079BlackoutZone)]
- private void OnScp079BlackoutZone(Scp079BlackoutZoneEvent args) => HandleEvent(ServerEventType.Scp079BlackoutZone, "Scp079BlackoutZone", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Zone.ToString());
+ private void OnScp079BlackoutZone(Scp079BlackoutZoneEvent args) => HandleEvent(ServerEventType.Scp079BlackoutZone, nameof(ServerEventType.Scp079BlackoutZone),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Zone.ToString());
[PluginEvent(ServerEventType.Scp079BlackoutRoom)]
- private void OnScp079BlackoutRoom(Scp079BlackoutRoomEvent args) => HandleEvent(ServerEventType.Scp079BlackoutRoom, "Scp079BlackoutRoom", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Room.Name.ToString());
+ private void OnScp079BlackoutRoom(Scp079BlackoutRoomEvent args) => HandleEvent(ServerEventType.Scp079BlackoutRoom, nameof(ServerEventType.Scp079BlackoutRoom),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Room.Name.ToString());
[PluginEvent(ServerEventType.Scp079CameraChanged)]
- private void OnScp079ChangedCamera(Scp079CameraChangedEvent args) => HandleEvent(ServerEventType.Scp079CameraChanged, "Scp079CameraChanged", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Camera.Label);
+ private void OnScp079ChangedCamera(Scp079CameraChangedEvent args) => HandleEvent(ServerEventType.Scp079CameraChanged, nameof(ServerEventType.Scp079CameraChanged),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Camera.Label);
#endregion
#region 049
[PluginEvent(ServerEventType.Scp049ResurrectBody)]
- private void OnScp049ResurrectBody(Scp049ResurrectBodyEvent args) => HandleEvent(ServerEventType.Scp049ResurrectBody, "Scp049ResurrectBody", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
+ private void OnScp049ResurrectBody(Scp049ResurrectBodyEvent args) => HandleEvent(ServerEventType.Scp049ResurrectBody, nameof(ServerEventType.Scp049ResurrectBody),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
[PluginEvent(ServerEventType.Scp049StartResurrectingBody)]
- private void OnScp049StartResurrectingBody(Scp049StartResurrectingBodyEvent args) => HandleEvent(ServerEventType.Scp049StartResurrectingBody, "Scp049StartResurrectingBody",
- args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
+ private void OnScp049StartResurrectingBody(Scp049StartResurrectingBodyEvent args) => HandleEvent(ServerEventType.Scp049StartResurrectingBody,
+ nameof(ServerEventType.Scp049StartResurrectingBody), args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(),
+ args.Target.DisplayNickname);
#endregion
#region 096
[PluginEvent(ServerEventType.Scp096AddingTarget)]
- private void OnScp096AddTarget(Scp096AddingTargetEvent args) => HandleEvent(ServerEventType.Scp096AddingTarget, "Scp096AddingTarget", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
+ private void OnScp096AddTarget(Scp096AddingTargetEvent args) => HandleEvent(ServerEventType.Scp096AddingTarget, nameof(ServerEventType.Scp096AddingTarget),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.Target.PlayerId.ToString(), args.Target.DisplayNickname);
[PluginEvent(ServerEventType.Scp096Enraging)]
- private void OnScp096Enrage(Scp096EnragingEvent args) => HandleEvent(ServerEventType.Scp096Enraging, "Scp096Enraging", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp096Enrage(Scp096EnragingEvent args) => HandleEvent(ServerEventType.Scp096Enraging, nameof(ServerEventType.Scp096Enraging),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp096ChangeState)]
- private void OnScp096CalmDown(Scp096ChangeStateEvent args) => HandleEvent(ServerEventType.Scp096ChangeState, "Scp096ChangeState", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname, args.RageState.ToString());
+ private void OnScp096CalmDown(Scp096ChangeStateEvent args) => HandleEvent(ServerEventType.Scp096ChangeState, nameof(ServerEventType.Scp096ChangeState),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname, args.RageState.ToString());
[PluginEvent(ServerEventType.Scp096Charging)]
- private void OnScp096Charge(Scp096ChargingEvent args) => HandleEvent(ServerEventType.Scp096Charging, "Scp096Charging", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp096Charge(Scp096ChargingEvent args) => HandleEvent(ServerEventType.Scp096Charging, nameof(ServerEventType.Scp096Charging),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp096PryingGate)]
- private void OnScp096PryGate(Scp096PryingGateEvent args) => HandleEvent(ServerEventType.Scp096PryingGate, "Scp096PryingGate", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp096PryGate(Scp096PryingGateEvent args) => HandleEvent(ServerEventType.Scp096PryingGate, nameof(ServerEventType.Scp096PryingGate),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp096TryNotCry)]
- private void OnScp096TryingNotCry(Scp096TryNotCryEvent args) => HandleEvent(ServerEventType.Scp096TryNotCry, "Scp096TryNotCry", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp096TryingNotCry(Scp096TryNotCryEvent args) => HandleEvent(ServerEventType.Scp096TryNotCry, nameof(ServerEventType.Scp096TryNotCry),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
[PluginEvent(ServerEventType.Scp096StartCrying)]
- private void OnScp096StartCrying(Scp096StartCryingEvent args) => HandleEvent(ServerEventType.Scp096StartCrying, "Scp096StartCrying", args.Player.PlayerId.ToString(),
- args.Player.DisplayNickname);
+ private void OnScp096StartCrying(Scp096StartCryingEvent args) => HandleEvent(ServerEventType.Scp096StartCrying, nameof(ServerEventType.Scp096StartCrying),
+ args.Player.PlayerId.ToString(), args.Player.DisplayNickname);
#endregion
#endregion
#region Bans
[PluginEvent(ServerEventType.BanIssued)]
- private void OnBanIssued(BanIssuedEvent args) => HandleEvent(ServerEventType.BanIssued, "BanIssued", args.BanDetails.Id, args.BanType.ToString());
+ private void OnBanIssued(BanIssuedEvent args) => HandleEvent(ServerEventType.BanIssued, nameof(ServerEventType.BanIssued), args.BanDetails.Id, args.BanType.ToString());
[PluginEvent(ServerEventType.BanRevoked)]
- private void OnBanRevoked(BanRevokedEvent args) => HandleEvent(ServerEventType.BanRevoked, "BanRevoked", args.Id, args.BanType.ToString());
+ private void OnBanRevoked(BanRevokedEvent args) => HandleEvent(ServerEventType.BanRevoked, nameof(ServerEventType.BanRevoked), args.Id, args.BanType.ToString());
[PluginEvent(ServerEventType.BanUpdated)]
- private void OnBanUpdated(BanUpdatedEvent args) => HandleEvent(ServerEventType.BanUpdated, "BanUpdated", args.BanDetails.Id, args.BanType.ToString());
+ private void OnBanUpdated(BanUpdatedEvent args) => HandleEvent(ServerEventType.BanUpdated, nameof(ServerEventType.BanUpdated), args.BanDetails.Id, args.BanType.ToString());
#endregion
}
diff --git a/SLCommandScript/Plugin.cs b/SLCommandScript/Plugin.cs
index 6183e43..ca12240 100644
--- a/SLCommandScript/Plugin.cs
+++ b/SLCommandScript/Plugin.cs
@@ -21,7 +21,7 @@ public class Plugin
///
/// Contains current plugin version.
///
- public const string PluginVersion = "1.0.1";
+ public const string PluginVersion = "1.0.2";
///
/// Contains plugin description.