Code:
public static void OnLogin(LoginEventArgs e)
{
if ( e.Mobile != null && e.Mobile is PlayerMobile && e.Mobile.AccessLevel == AccessLevel.Player && e.Mobile is Young)
Timer.DelayCall(TimeSpan.FromSeconds(1), () =>
{
if (!e.Mobile.HasGump(typeof(YoungSystemGump)))
e.Mobile.SendGump(new YoungSystemGump(e.Mobile));
});
}
I am trying to make this gump only show to young players. I have tried every variant of
e.Mobile.Young == true;
e.Mobile.Young == Young.True.
but always get the same few errors. I know I am referencing it wrong but can not for the life of me figure this one out. Any help would be greatly appreciated.