Updated Commands to use heal packet instead of hearts, enabling godmode. needs permission.
This commit is contained in:
parent
efa6b8fbac
commit
2621774e85
5 changed files with 21 additions and 8 deletions
|
|
@ -530,10 +530,15 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
TPlayer.Teleport(new Vector2(x, y), style);
|
||||
NetMessage.SendData(65, -1, -1, "", 0, TPlayer.whoAmi, x, y, style);
|
||||
NetMessage.SendData((int)PacketTypes.Teleport, -1, -1, "", 0, TPlayer.whoAmi, x, y, style);
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Heal(int damage = 400)
|
||||
{
|
||||
NetMessage.SendData((int)PacketTypes.PlayerHealOther, -1, -1, "", this.TPlayer.whoAmi, damage);
|
||||
}
|
||||
|
||||
public void Spawn()
|
||||
{
|
||||
Spawn(TPlayer.SpawnX, TPlayer.SpawnY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue