Adds API Function, SetTeam
This commit is contained in:
parent
917865cab5
commit
3e111e8e46
3 changed files with 35 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue