Mud Engine:
GMTeleport checks to make sure the player using the command is indeed a GM.
This commit is contained in:
parent
1d302413d2
commit
02c7b18094
1 changed files with 5 additions and 7 deletions
|
@ -24,14 +24,12 @@ namespace MudDesigner.MudEngine.GameCommands
|
||||||
public CommandResults Execute(BaseCharacter player, ProjectInformation project, Room room, string command)
|
public CommandResults Execute(BaseCharacter player, ProjectInformation project, Room room, string command)
|
||||||
{
|
{
|
||||||
PlayerGM playerGM = new PlayerGM();
|
PlayerGM playerGM = new PlayerGM();
|
||||||
bool foundGM = false;
|
|
||||||
|
|
||||||
if (player is PlayerGM)
|
if (player is PlayerGM)
|
||||||
{
|
{
|
||||||
foundGM = true;
|
playerGM = (PlayerGM)player;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
if (!foundGM)
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
//TODO: Find the Realm/Zone/Room that the GM specified to teleport to.
|
//TODO: Find the Realm/Zone/Room that the GM specified to teleport to.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue