mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Maybe fix race condition with messages not sending
This commit is contained in:
parent
e79b7c7023
commit
31884ea59d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user