public static void SetProfiles_OnCommand( CommandEventArgs e ) { if ( e.Length == 1 ) Core.Profiling = e.GetBoolean( 0 ); else Core.Profiling = !Core.Profiling; e.Mobile.SendMessage( "Profiling has been {0}.", Core.Profiling ? "enabled" : "disabled" ); }