feat: Converts OnLogin to a coded generated event (#2070)
This commit is contained in:
parent
3b698de556
commit
66a257ece2
25 changed files with 127 additions and 122 deletions
|
|
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text.Json.Serialization;
|
||||
using ModernUO.CodeGeneratedEvents;
|
||||
using Server.Collections;
|
||||
using Server.Json;
|
||||
using Server.Mobiles;
|
||||
|
|
@ -138,10 +139,11 @@ public static class AntiMacroSystem
|
|||
}
|
||||
}
|
||||
|
||||
public static void OnLogin(Mobile m)
|
||||
[OnEvent(nameof(PlayerMobile.PlayerLoginEvent))]
|
||||
public static void OnLogin(PlayerMobile pm)
|
||||
{
|
||||
// Stop the clear out timer
|
||||
if (_logoutCleanup?.Remove(m, out var timer) == true)
|
||||
if (_logoutCleanup?.Remove(pm, out var timer) == true)
|
||||
{
|
||||
timer.Stop();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue