Skip to content
Merged
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
8 changes: 8 additions & 0 deletions EXILED/Exiled.API/Features/Core/UserSettings/SettingBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ public static void SendToAll(Func<Player, bool> predicate)
/// <param name="player">Target player.</param>
public static void SendToPlayer(Player player) => ServerSpecificSettingsSync.SendToPlayer(player.ReferenceHub);

/// <summary>
/// Syncs specific settings with the specified target.
/// </summary>
/// <param name="player">Target player.</param>
/// <param name="settings">Settings to send to the player.</param>
public static void SendToPlayer(Player player, IEnumerable<SettingBase> settings) =>
ServerSpecificSettingsSync.SendToPlayer(player.ReferenceHub, settings.Select(setting => setting.Base).ToArray());

/// <summary>
/// Registers all settings from the specified collection.
/// </summary>
Expand Down