Added documentation to the withMsg parameter in the SetPvP method.
This commit is contained in:
parent
c047b0e87d
commit
fa9e4419bd
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue