Chest KillTile is now subject to region protection.

Non-working /buff
This commit is contained in:
Deathmax 2011-07-03 14:12:09 +08:00 committed by Steven French
parent e4bcadcdc4
commit 473d554de1
4 changed files with 54 additions and 0 deletions

View file

@ -163,6 +163,7 @@ namespace TShockAPI
ChatCommands.Add(new Command("item", Item, "item", "i"));
ChatCommands.Add(new Command("item", Give, "give"));
ChatCommands.Add(new Command("heal", Heal, "heal"));
//ChatCommands.Add(new Command("buff", Buff, "buff"));
}
}
@ -1662,6 +1663,22 @@ namespace TShockAPI
}
}
private static void Buff(CommandArgs args)
{
if (!args.Player.RealPlayer)
{
args.Player.SendMessage("You cant buff yourself!");
return;
}
if (args.Parameters.Count > 0)
{
args.Player.SendMessage("Invalid syntax! Proper syntax: /buff", Color.Red);
return;
}
args.Player.Buff();
args.Player.SendMessage("You have been buffed.", Color.Lime);
}
#endregion Cheat Comamnds
}
}