Skip to content

Commit 5167f65

Browse files
Update PlayerAnimatedBroadcastMethod.cs
1 parent 4deffbe commit 5167f65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Code/MethodSystem/Methods/BroadcastMethods/PlayerAnimatedBroadcastMethod.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
using SER.Code.MethodSystem.Structures;
1010
using Player = Exiled.API.Features.Player;
1111

12-
1312
namespace SER.Code.MethodSystem.Methods.BroadcastMethods;
1413

1514
[UsedImplicitly]
1615
public class PlayerAnimatedBroadcastMethod : SynchronousMethod, IAdditionalDescription, IDependOnFramework
1716
{
18-
public override string Description => "Sends an animated broadcast to all players.";
17+
public override string Description => "Sends an animated broadcast to specified players.";
1918

2019
public override Argument[] ExpectedArguments { get; } =
2120
[
@@ -34,8 +33,9 @@ public override void Execute()
3433
var content = Args.GetText("content");
3534
var duration = Args.GetDuration("duration").TotalSeconds;
3635

37-
foreach (var plr in Args.GetPlayers("players").Select(Player.Get))
36+
foreach (var labPlr in Args.GetPlayers("players"))
3837
{
38+
var plr = Player.Get(labPlr);
3939
plr.Connection.Send(new CassieTtsPayload(string.Empty, string.Empty, false));
4040
plr.MessageTranslated(
4141
$"$SLEEP_{duration-1} .",

0 commit comments

Comments
 (0)