public static void EventSink_ChangeProfileRequest(ChangeProfileRequestEventArgs e) { Mobile from = e.Beholder; if (from.ProfileLocked) from.SendMessage("Your profile is locked. You may not change it."); else from.Profile = e.Text; }
public static void EventSink_ChangeProfileRequest(ChangeProfileRequestEventArgs e) { Mobile from = e.Beholder; if (from.ProfileLocked) { from.SendMessage("Your profile is locked. You may not change it."); } else { from.Profile = e.Text; } }
public static void EventSink_ChangeProfileRequest(ChangeProfileRequestEventArgs e) { if (e.Beholder != e.Beheld && e.Beholder.AccessLevel <= e.Beheld.AccessLevel) { e.Beholder.SendMessage("You do not have permission to do that."); return; } Mobile from = e.Beholder; if (from.ProfileLocked) { from.SendMessage("Your profile is locked. You may not change it."); } else { from.Profile = e.Text; } }
public void InvokeChangeProfileRequest( ChangeProfileRequestEventArgs e ) { if ( ChangeProfileRequest != null ) ChangeProfileRequest( e ); }