From 10c09dbf17389c744fd3f8060e1b71c484965311 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Mon, 2 Oct 2017 08:48:22 +0200 Subject: [PATCH] Whoops, wasn't thread safe #1344 --- .../java/fr/xephi/authme/process/join/AsynchronousJoin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java index ebb1d43d1..af325cbae 100644 --- a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java +++ b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java @@ -130,7 +130,9 @@ public class AsynchronousJoin implements AsynchronousProcess { return; } } else if (!service.getProperty(RegistrationSettings.FORCE)) { - welcomeMessageConfiguration.sendWelcomeMessage(player); + bukkitService.scheduleSyncTaskFromOptionallyAsyncTask(() -> { + welcomeMessageConfiguration.sendWelcomeMessage(player); + }); // Skip if registration is optional return;