Skip to content

Commit

Permalink
Always true
Browse files Browse the repository at this point in the history
  • Loading branch information
ITeMbI4 committed Oct 23, 2023
1 parent 809a1e6 commit 81490dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1485,15 +1485,15 @@ public static bool AddToWhitelist(string userId, bool isPermanent)
/// <param name="isPermanent"> Whether or not to add a player's UserId permanently. It will write a player's UserId to UserIDReservedSlots.txt file.</param>
/// <returns><see langword="true"/> if the slot was successfully added, or <see langword="false"/> if the provided UserId already has a reserved slot.</returns>
/// <seealso cref="AddReservedSlot(string, bool)"/>
public bool GiveReservedSlot(bool isPermanent = false) => AddReservedSlot(UserId, isPermanent);
public bool GiveReservedSlot(bool isPermanent) => AddReservedSlot(UserId, isPermanent);

/// <summary>
/// Adds a player's UserId to the whitelist.
/// </summary>
/// <param name="isPermanent"> Whether or not to add a player's UserId permanently. It will write a player's UserId to UserIDWhitelist.txt file.</param>
/// <returns><see langword="true"/> if the record was successfully added, or <see langword="false"/> if the provided UserId already is in whitelist.</returns>
/// <seealso cref="AddToWhitelist(string, bool)"/>
public bool GrantWhitelist(bool isPermanent = false) => AddToWhitelist(UserId, isPermanent);
public bool GrantWhitelist(bool isPermanent) => AddToWhitelist(UserId, isPermanent);

/// <summary>
/// Tries to add <see cref="RoleTypeId"/> to FriendlyFire rules.
Expand Down

0 comments on commit 81490dc

Please sign in to comment.