Skip to content

Commit eac382b

Browse files
committed
Added unload funtion for XPForKills for /rocket reload compatibility.
1 parent 42389d1 commit eac382b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

XPForKills.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ protected override void Load()
2121
Logger.Log("Plugin Loaded");
2222
}
2323

24+
protected override void Unload()
25+
{
26+
UnturnedPlayerEvents.OnPlayerDeath -= OnPlayerDeath;
27+
Logger.Log("Plugin Unloaded");
28+
}
29+
2430
public void OnPlayerDeath(UnturnedPlayer player, EDeathCause deathCause, ELimb limb, Steamworks.CSteamID murdererID)
2531
{
2632
// From observations, ID is only invalid if the player was killed by an admin command.

0 commit comments

Comments
 (0)