Register using plugin name instead of plugin instance

This commit is contained in:
libraryaddict 2021-12-14 18:37:10 +13:00
parent 36f410c1ce
commit 3a10606fb7

View File

@ -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