Began some error corrections from adding BaseCommand

This commit is contained in:
Scionwest_cp 2011-09-15 19:57:08 -07:00
parent 3ab27d2fae
commit ac14f2a657
4 changed files with 5 additions and 2 deletions

View file

@ -11,6 +11,8 @@ namespace MudEngine.Commands
{ {
public Boolean Override { get; set; } public Boolean Override { get; set; }
public String Name { get; set; }
//public String Name { get; set; } //public String Name { get; set; }
public List<String> Help { get; set; } public List<String> Help { get; set; }

View file

@ -23,7 +23,7 @@ namespace MudEngine.Commands
Help.Add("Example: 'Edit Realm MyRealm'"); Help.Add("Example: 'Edit Realm MyRealm'");
} }
public void Execute(String command, BaseCharacter player) public override void Execute(String command, BaseCharacter player)
{ {
if ((player.Role == SecurityRoles.Admin) || (player.Role == SecurityRoles.GM)) if ((player.Role == SecurityRoles.Admin) || (player.Role == SecurityRoles.GM))
{ {

View file

@ -19,7 +19,7 @@ namespace MudEngine.Commands
Help.Add("Saves the game world."); Help.Add("Saves the game world.");
} }
public void Execute(String command, BaseCharacter player) public override void Execute(String command, BaseCharacter player)
{ {
if ((player.Role == SecurityRoles.Admin) || (player.Role == SecurityRoles.GM)) if ((player.Role == SecurityRoles.Admin) || (player.Role == SecurityRoles.GM))
{ {

View file

@ -58,6 +58,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Attributes\ParseProperty.cs" /> <Compile Include="Attributes\ParseProperty.cs" />
<Compile Include="Commands\BaseCommand.cs" />
<Compile Include="Commands\CommandRestart.cs" /> <Compile Include="Commands\CommandRestart.cs" />
<Compile Include="Commands\CommandLogin.cs" /> <Compile Include="Commands\CommandLogin.cs" />
<Compile Include="Commands\CommandSaveWorld.cs" /> <Compile Include="Commands\CommandSaveWorld.cs" />