Core: Fix core aliases being duplicated in /help for commands after doing /server reload.

This commit is contained in:
UnknownShadow200 2016-09-15 11:11:09 +10:00
parent 389264a7db
commit a1866472e9
2 changed files with 24 additions and 22 deletions

View File

@ -50,7 +50,9 @@ namespace MCGalaxy {
}
public static void Load(){
aliases = new List<Alias>();
aliases.Clear();
coreAliases.Clear();
if (!File.Exists(file)) { Save(); return; }
PropertiesFile.Read(file, LineProcessor, ':');
}

View File

@ -125,6 +125,7 @@
<Compile Include="Chat\FullCP437Handler.cs" />
<Compile Include="Chat\ChatTokens.cs" />
<Compile Include="Chat\LineWrapper.cs" />
<Compile Include="Commands\Alias.cs" />
<Compile Include="Commands\Bots\CmdBotAdd.cs" />
<Compile Include="Commands\Bots\CmdBotAI.cs" />
<Compile Include="Commands\Bots\CmdBotRemove.cs" />
@ -575,7 +576,6 @@
<Compile Include="Network\NetUtils.cs" />
<Compile Include="Network\Opcode.cs" />
<Compile Include="Network\Player.Networking.cs" />
<Compile Include="Player\Alias.cs" />
<Compile Include="API\API.cs" />
<Compile Include="Plugins\Plugin.cs" />
<Compile Include="Plugins\Plugin.Events.cs" />