MudGame commands are corrected to work with the new abstract BaseCommands class.
This commit is contained in:
parent
974cc0f9b8
commit
16ef50f59a
13 changed files with 13 additions and 13 deletions
|
@ -28,7 +28,7 @@ public class CommandCreate : BaseCommand
|
|||
/// </summary>
|
||||
/// <param name="command"></param>
|
||||
/// <param name="player"></param>
|
||||
public void Execute(String command, BaseCharacter player)
|
||||
public override void Execute(String command, BaseCharacter player)
|
||||
{
|
||||
//Check if the player has the proper security role in order to create content for the game world.
|
||||
if ((player.Role != SecurityRoles.Admin) && (player.Role != SecurityRoles.GM))
|
||||
|
|
|
@ -13,7 +13,7 @@ public class CommandCreateRoom : BaseCommand
|
|||
Help.Add("Creates a Room within the Admin's current Realm>Zone");
|
||||
}
|
||||
|
||||
public void Execute(String command, BaseCharacter player)
|
||||
public override void Execute(String command, BaseCharacter player)
|
||||
{
|
||||
if ((player.Role == SecurityRoles.Admin) || (player.Role == SecurityRoles.GM))
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ public class CommandLinkRoom : BaseCommand
|
|||
/// </summary>
|
||||
/// <param name="command"></param>
|
||||
/// <param name="player"></param>
|
||||
public void Execute(String command, BaseCharacter player)
|
||||
public override void Execute(String command, BaseCharacter player)
|
||||
{
|
||||
//Check if the Player has the correct privileges to Link Rooms together.
|
||||
//If they are not a Admin or GM then the command will bail.
|
||||
|
|
|
@ -18,7 +18,7 @@ public class CommandList : BaseCommand
|
|||
Help.Add("RealmName>ZoneName>Rooms");
|
||||
}
|
||||
|
||||
public void Execute(String command, BaseCharacter player)
|
||||
public override void Execute(String command, BaseCharacter player)
|
||||
{
|
||||
command = command.Substring("List".Length).Trim();
|
||||
String[] data = command.ToLower().Split('>');
|
||||
|
|
|
@ -10,7 +10,7 @@ public class CommandTeleport : BaseCommand
|
|||
Help.Add("Example: Teleport Billy MyRealm>MyZone>MyRoom");
|
||||
}
|
||||
|
||||
public void Execute(String command, BaseCharacter player)
|
||||
public override void Execute(String command, BaseCharacter player)
|
||||
{
|
||||
command = command.Substring("teleport".Length).Trim();
|
||||
String[] data = command.ToLower().Split(' ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue