From ef1e781adb24532cd8d89e8c9a065a81e52c997f Mon Sep 17 00:00:00 2001 From: night0721 Date: Wed, 13 Jul 2022 15:19:56 +0100 Subject: [PATCH] removed plugin instance on sidebar as it is redundant --- src/main/java/com/night/nullvalkyrie/Main.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/night/nullvalkyrie/Main.java b/src/main/java/com/night/nullvalkyrie/Main.java index 87ad658..8648821 100644 --- a/src/main/java/com/night/nullvalkyrie/Main.java +++ b/src/main/java/com/night/nullvalkyrie/Main.java @@ -48,7 +48,6 @@ public final class Main extends JavaPlugin implements Listener { return customItemManager; } - @Override public void onEnable() { new VanishCommand(); @@ -60,7 +59,6 @@ public final class Main extends JavaPlugin implements Listener { new HologramCommand(); new CraftCommand(); new EnchantingCommand(); - new SpawnCommand(); new RankCommand(this); new WeaponCommand(this); bossbar = Bukkit.createBossBar(ChatColor.GOLD + "Kuudra", BarColor.RED, BarStyle.SEGMENTED_12); @@ -68,9 +66,10 @@ public final class Main extends JavaPlugin implements Listener { Bukkit.getPluginManager().registerEvents(new MenuListener(), this); Bukkit.getPluginManager().registerEvents(new ScoreboardListener(this), this); Bukkit.getPluginManager().registerEvents(new CustomItemEvents(), this); + Bukkit.getPluginManager().registerEvents(new SpawnCommand(this), this); nameTagManager = new NameTagManager(this); rankManager = new RankManager(this); - sideBarManager = new SideBarManager(this); + sideBarManager = new SideBarManager(); belowNameManager = new BelowNameManager(); new EnchantmentManager(); customItemManager = new CustomItemManager(this);