Added documentation to the withMsg parameter in the SetPvP method.

This commit is contained in:
AkjaHAsLk1IALk0MasH 2023-05-14 09:16:14 +07:00
parent c047b0e87d
commit fa9e4419bd

View file

@ -1852,6 +1852,7 @@ namespace TShockAPI
/// Sets the player's pvp.
/// </summary>
/// <param name="mode">The state of the pvp mode.</param>
/// <param name="withMsg">Whether a chat message about the change should be sent.</param>
public virtual void SetPvP(bool mode, bool withMsg = false)
{
Main.player[Index].hostile = mode;