From 3a10606fb72cfffb8ff2b432dd2cdb70046153a3 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 14 Dec 2021 18:37:10 +1300 Subject: [PATCH] Register using plugin name instead of plugin instance --- .../java/me/libraryaddict/disguise/disguisetypes/Disguise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index 3b4bda0c..0e60e8a8 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -66,7 +66,7 @@ public abstract class Disguise { @Getter private BarStyle bossBarStyle = DisguiseConfig.getBossBarStyle(); @Getter(value = AccessLevel.PRIVATE) - private final NamespacedKey bossBar = new NamespacedKey(LibsDisguises.getInstance(), UUID.randomUUID().toString()); + private final NamespacedKey bossBar = new NamespacedKey("LibsDisguises", UUID.randomUUID().toString()); private FlagWatcher watcher; /** * If set, how long before disguise expires