Whoops, wasn't thread safe #1344

This commit is contained in:
Gabriele C 2017-10-02 08:48:22 +02:00
parent 3d08e1bae5
commit 10c09dbf17

View File

@ -130,7 +130,9 @@ public class AsynchronousJoin implements AsynchronousProcess {
return;
}
} else if (!service.getProperty(RegistrationSettings.FORCE)) {
bukkitService.scheduleSyncTaskFromOptionallyAsyncTask(() -> {
welcomeMessageConfiguration.sendWelcomeMessage(player);
});
// Skip if registration is optional
return;