From 1c42c34081b44f8d584aebb805e69c3061dfc215 Mon Sep 17 00:00:00 2001 From: Outfluencer <48880402+Outfluencer@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:51:10 +0200 Subject: [PATCH] #3529: Use a synchronized list for /send command --- .../main/java/net/md_5/bungee/module/cmd/send/CommandSend.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/cmd-send/src/main/java/net/md_5/bungee/module/cmd/send/CommandSend.java b/module/cmd-send/src/main/java/net/md_5/bungee/module/cmd/send/CommandSend.java index f59f9457..01cab610 100644 --- a/module/cmd-send/src/main/java/net/md_5/bungee/module/cmd/send/CommandSend.java +++ b/module/cmd-send/src/main/java/net/md_5/bungee/module/cmd/send/CommandSend.java @@ -38,7 +38,7 @@ public class CommandSend extends Command implements TabExecutor this.sender = sender; for ( ServerConnectRequest.Result result : ServerConnectRequest.Result.values() ) { - results.put( result, new ArrayList() ); + results.put( result, Collections.synchronizedList( new ArrayList<>() ) ); } }