diff --git a/VpSharp/src/Entities/VirtualParadiseAvatar.cs b/VpSharp/src/Entities/VirtualParadiseAvatar.cs index 789f879..66852b9 100644 --- a/VpSharp/src/Entities/VirtualParadiseAvatar.cs +++ b/VpSharp/src/Entities/VirtualParadiseAvatar.cs @@ -287,6 +287,23 @@ public sealed class VirtualParadiseAvatar : IEquatable return Task.CompletedTask; } + /// + /// Modifies the world settings for this avatar. + /// + /// The builder which defines parameters to change. + /// is . + /// The client does not have permission to modify world settings. + public async Task SendWorldSettings(Action action) + { + ArgumentNullException.ThrowIfNull(action); + + // ReSharper disable once InconsistentlySynchronizedField + var builder = new WorldSettingsBuilder(_client, Session); + await Task.Run(() => action(builder)).ConfigureAwait(false); + + builder.SendChanges(); + } + /// /// Teleports the avatar to another world. ///