#var badaliases {music|StopMusic|sc|capture}
#ForAll @badaliases {#gunalias %i}

#Alias login {#alarm 1 {#gagon all; 1; %charInfo(name); #wait (0.1); #ungagon; %charInfo(password)}}
#alias ActualSave {#if {%length(@decchar)>1 OR %length(@decchar)<1} {#say {Attention. Your decimal seperator was set incorrectly therefore it has been switched to default.};#var decchar .};
#File 6 {settings.set} 1;
#Var SettingsFileCounter 0;
#ForAll @settings {
#Math SettingsFileCounter {@SettingsFileCounter +1};
        #Write 6 @{%i} @SettingsFileCounter};
    #close 6;}
#alias {onDisconnect} {
#gvar disconnected 1;
ActualSave; #say {Settings saved!};
#if {@introplaying=1} {#var introplaying 0;#pc @introhandle stop}
}
#alias intromusictoggle {
#if {@intromusic = "Enabled"} {#var intromusic "Disabled"; #say {intro music disabled} VoiceOnly} {#var intromusic "Enabled"; #say {intro music enabled} VoiceOnly}}
#alias  mainvoldown {
#math Vol {@Vol - 5};
#if {@Vol < 0} {@Vol = 0};
#play {@sppath/general/misc/VolumeDown.wav} @vol; #say {Main Volume @Vol percent} VoiceOnly;
#if {@introplaying=1} {#PC @introhandle Volume @vol}}
#alias mainvolup {#gagline display; 
#math Vol {@Vol + 5};
#if {@introplaying=1} {#PC @introhandle Volume @vol};
#if {@Vol > 100} {@Vol = 100};
#play {@sppath/general/misc/VolumeUp.wav} @vol; #say {Main Volume @Vol percent} VoiceOnly}; #if {@vol = 100} {
#say {Volume maxed!} VoiceOnly}

#alias {smute}  {
#if {@Speech = "Disabled"} {
#var Speech "Enabled";
#SetSpeech incoming off;  #say {speech off.} voiceonly;} {
#var Speech "Disabled";
#SetSpeech incoming on;
#say {speech on.} VoiceOnly}}

#alias makeworse {#Configure PassThruChar {~>}; #Configure SwitchSession {~:}; #passthru {•}}
#alias makebetter {#Configure PassThruChar {~•}; #Configure SwitchSession {~•}; #passthru {%<;>{}#"'}}
#alias rawinput  {#if {@rawpass = "enabled"} {#var rawpass "disabled"; makeworse; #say {Raw input mode is now disabled.};#play {@sppath/general/misc/off.wav} @vol} {#var rawpass "enabled"; makebetter; #say {Raw input mode is now enabled.};#play {@sppath/general/misc/on.wav} @vol}} 

#alias {AutomaticUpdate} {#if {@AutomaticUpdate="enabled"} {
#var AutomaticUpdate "disabled";
#play {@sppath/general/misc/off.wav} @vol;
#say {Automatic updates will no longer be applied to your soundpack.};
} {
#var AutomaticUpdate "enabled";
#play {@sppath/general/misc/on.wav} @vol;
#say {Updates will now automaticly be applied to your soundpack.};
}
}
#alias {spreload} {
#pc 0 stop;
#reload;
~@sp-restart;
~@sp-version
}