public static void APN_OnCommand( CommandEventArgs e ) { Mobile m = e.Mobile; m.AutoPageNotify = !m.AutoPageNotify; m.SendMessage( "Your auto-page-notify has been turned {0}.", m.AutoPageNotify ? "on" : "off" ); }