fix: Moves many EventSinks out of core. (#1783)
This commit is contained in:
parent
1cb798d807
commit
00908d030f
45 changed files with 133 additions and 276 deletions
|
|
@ -561,16 +561,13 @@ namespace Server.Engines.VeteranRewards
|
|||
RewardInterval = ServerConfiguration.GetOrUpdateSetting("vetRewards.rewardInterval", TimeSpan.FromDays(30.0));
|
||||
}
|
||||
|
||||
public static void Initialize()
|
||||
public static void OnLogin(Mobile m)
|
||||
{
|
||||
if (Enabled)
|
||||
if (!Enabled)
|
||||
{
|
||||
EventSink.Login += EventSink_Login;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private static void EventSink_Login(Mobile m)
|
||||
{
|
||||
if (!m.Alive)
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue