mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-24 21:11:41 +02:00
Maybe fix race condition with messages not sending
This commit is contained in:
@@ -34,8 +34,8 @@ import java.util.UUID;
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class BukkitSenderFactory extends SenderFactory<CommandSender> {
|
||||
private static BukkitSenderFactory instance = null;
|
||||
public static BukkitSenderFactory get() {
|
||||
if (instance == null){
|
||||
public static synchronized BukkitSenderFactory get() {
|
||||
if (instance == null) {
|
||||
instance = new BukkitSenderFactory();
|
||||
}
|
||||
return instance;
|
||||
|
@@ -35,8 +35,8 @@ import java.util.UUID;
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class BungeeSenderFactory extends SenderFactory<CommandSender> {
|
||||
private static BungeeSenderFactory instance = null;
|
||||
public static BungeeSenderFactory get() {
|
||||
if (instance == null){
|
||||
public static synchronized BungeeSenderFactory get() {
|
||||
if (instance == null) {
|
||||
instance = new BungeeSenderFactory();
|
||||
}
|
||||
return instance;
|
||||
|
@@ -35,8 +35,8 @@ import java.util.UUID;
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class SpongeSenderFactory extends SenderFactory<CommandSource> {
|
||||
private static SpongeSenderFactory instance = null;
|
||||
public static SpongeSenderFactory get() {
|
||||
if (instance == null){
|
||||
public static synchronized SpongeSenderFactory get() {
|
||||
if (instance == null) {
|
||||
instance = new SpongeSenderFactory();
|
||||
}
|
||||
return instance;
|
||||
|
Reference in New Issue
Block a user