Ejemplo n.º 1
0
 public override void Use(Player p, params string[] args)
 {
     if (args.Length > 0)
     {
         Player who = Player.FindPlayer(args[0]);
         if (who != null)
         {
             who.health = 20;
             p.SendMessage("Healed " + who.GetName() + "!");
             who.SendMessage(p.GetName() + " healed you!");
             return;
         }
         else
         {
             p.SendMessage("Player " + args[0] + " not found!");
             return;
         }
     }
     p.health = 20;
     p.SendMessage("You healed yourself!");
 }