#3529: Use a synchronized list for /send command
This commit is contained in:
parent
fed646d18b
commit
1c42c34081
@ -38,7 +38,7 @@ public class CommandSend extends Command implements TabExecutor
|
|||||||
this.sender = sender;
|
this.sender = sender;
|
||||||
for ( ServerConnectRequest.Result result : ServerConnectRequest.Result.values() )
|
for ( ServerConnectRequest.Result result : ServerConnectRequest.Result.values() )
|
||||||
{
|
{
|
||||||
results.put( result, new ArrayList<String>() );
|
results.put( result, Collections.synchronizedList( new ArrayList<>() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user