Adds BufferReader and BufferWriter. Updates UOP handling. (#101)
This commit is contained in:
parent
2c0d97cd36
commit
038c3be258
98 changed files with 2458 additions and 2185 deletions
|
|
@ -24,9 +24,9 @@ namespace Server.Misc
|
|||
EventSink.Login += EventSink_Login;
|
||||
}
|
||||
|
||||
private static void EventSink_Login(LoginEventArgs e)
|
||||
private static void EventSink_Login(Mobile m)
|
||||
{
|
||||
if (!(e.Mobile.Account is Account acct))
|
||||
if (!(m.Account is Account acct))
|
||||
return;
|
||||
|
||||
DateTime now = DateTime.UtcNow;
|
||||
|
|
@ -44,7 +44,7 @@ namespace Server.Misc
|
|||
if (acct.LastLogin >= giver.Start)
|
||||
continue; // already got one
|
||||
|
||||
giver.DelayGiveGift(TimeSpan.FromSeconds(5.0), e.Mobile);
|
||||
giver.DelayGiveGift(TimeSpan.FromSeconds(5.0), m);
|
||||
}
|
||||
|
||||
acct.LastLogin = now;
|
||||
|
|
|
|||
|
|
@ -37,10 +37,8 @@ namespace Server.Misc
|
|||
EventSink.Login += OnLogin;
|
||||
}
|
||||
|
||||
public static void OnLogin(LoginEventArgs e)
|
||||
public static void OnLogin(Mobile from)
|
||||
{
|
||||
Mobile from = e.Mobile;
|
||||
|
||||
if (from == null || from.AccessLevel < AccessLevel.Counselor)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue