Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions EXILED/Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace Exiled.API.Features
using DamageHandlers;
using Enums;
using Exiled.API.Features.Core.Interfaces;
using Exiled.API.Features.Core.UserSettings;
using Exiled.API.Features.CustomStats;
using Exiled.API.Features.Doors;
using Exiled.API.Features.Hazards;
Expand Down Expand Up @@ -3660,6 +3661,32 @@ public void RandomTeleport(IEnumerable<Type> types)
/// <typeparam name="T">Object for teleport.</typeparam>
public void RandomTeleport<T>() => RandomTeleport(typeof(T));

/// <summary>
/// Registers a collection of Server-side specific settings for the player.
/// </summary>
/// <param name="settings">The collection of Server-side specific settings to register.</param>
public void RegisterSettings(IEnumerable<SettingBase> settings)
{
SettingBase.Register(settings, (p) => { return p == this; });
}

/// <summary>
/// Unregisters all Server-side specific settings associated with this player.
/// </summary>
public void UnregisterSettings()
{
SettingBase.Unregister((p) => { return p == this; });
}

/// <summary>
/// Unregisters the specified Server-side specific settings for the player.
/// </summary>
/// <param name="settings">The collection of settings to unregister.</param>
public void UnregisterSettings(IEnumerable<SettingBase> settings)
{
SettingBase.Unregister((p) => { return p == this; }, settings);
}

/// <inheritdoc/>
public T AddComponent<T>(string name = "")
where T : EActor
Expand Down