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
|
|
@ -1,3 +1,6 @@
|
|||
using ModernUO.CodeGeneratedEvents;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Misc
|
||||
{
|
||||
public static class Strandedness
|
||||
|
|
@ -112,7 +115,8 @@ namespace Server.Misc
|
|||
return false;
|
||||
}
|
||||
|
||||
public static void OnLogin(Mobile from)
|
||||
[OnEvent(nameof(PlayerMobile.PlayerLoginEvent))]
|
||||
public static void OnLogin(PlayerMobile from)
|
||||
{
|
||||
if (!IsStranded(from))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue