SwitchMap() public method

public SwitchMap ( Level l ) : void
l Level
return void
Beispiel #1
0
 public override void PlayerUse(Player p, string[] parameters, string fullCommand)
 {
     if (parameters.Length == 0)
     {
         PlayerHelp(p);
         return;
     }
     Level level = Level.Find(parameters[0]);
     if (level == null) p.SendMessage("Not found!");
     else
     p.SwitchMap(level);
 }