#3529: Use a synchronized list for /send command

This commit is contained in:
Outfluencer 2023-09-27 22:51:10 +02:00 committed by GitHub
parent fed646d18b
commit 1c42c34081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<String>() );
results.put( result, Collections.synchronizedList( new ArrayList<>() ) );
}
}