Adds API Function, SetTeam

This commit is contained in:
Twitchy 2011-07-29 18:53:08 +12:00
parent 917865cab5
commit 3e111e8e46
3 changed files with 35 additions and 23 deletions

View file

@ -296,6 +296,12 @@ namespace TShockAPI
NetMessage.SendData((int)PacketTypes.TogglePVP, -1, -1, "", Index);
}
public virtual void SetTeam(int team)
{
Main.player[Index].team = team;
SendData(PacketTypes.PlayerTeam, "", Index);
}
public virtual void Whoopie(object time)
{
var time2 = (int)time;