Added the TSPlayer.Hostile property.
It gets `TPlayer.hostile`. I also wanted to add the ability to change `TPlayer.hostile`, but noticed a property `TSPlayer.Team`. You can only use the `TSPlayer.SetTeam` method to change it. So it's exactly the same here: You can use the method `TSPlayer.SetPvP` (By the way, it should be renamed to `TSPlayer.SetHostile`)
This commit is contained in:
parent
2f7514c0ef
commit
4d92f11cc8
1 changed files with 5 additions and 0 deletions
|
|
@ -1147,6 +1147,11 @@ namespace TShockAPI
|
||||||
get { return TPlayer.team; }
|
get { return TPlayer.team; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets PvP player mode.
|
||||||
|
/// </summary>
|
||||||
|
public bool Hostile => TPlayer.hostile;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the player's X coordinate.
|
/// Gets the player's X coordinate.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue