Began some error corrections from adding BaseCommand
This commit is contained in:
parent
3ab27d2fae
commit
ac14f2a657
4 changed files with 5 additions and 2 deletions
|
@ -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; }
|
||||||
|
|
||||||
|
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
@ -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" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue