Mud Engine:

GMTeleport checks to make sure the player using the command is indeed a GM.
This commit is contained in:
Scionwest_cp 2010-04-18 11:32:49 -07:00
parent 1d302413d2
commit 02c7b18094

View file

@ -24,14 +24,12 @@ namespace MudDesigner.MudEngine.GameCommands
public CommandResults Execute(BaseCharacter player, ProjectInformation project, Room room, string command)
{
PlayerGM playerGM = new PlayerGM();
bool foundGM = false;
if (player is PlayerGM)
{
foundGM = true;
playerGM = (PlayerGM)player;
}
if (!foundGM)
else
return null;
//TODO: Find the Realm/Zone/Room that the GM specified to teleport to.