removed plugin instance on sidebar as it is redundant

This commit is contained in:
night0721 2022-07-13 15:19:56 +01:00
parent 4c68cc7c25
commit ef1e781adb

View file

@ -48,7 +48,6 @@ public final class Main extends JavaPlugin implements Listener {
return customItemManager; return customItemManager;
} }
@Override @Override
public void onEnable() { public void onEnable() {
new VanishCommand(); new VanishCommand();
@ -60,7 +59,6 @@ public final class Main extends JavaPlugin implements Listener {
new HologramCommand(); new HologramCommand();
new CraftCommand(); new CraftCommand();
new EnchantingCommand(); new EnchantingCommand();
new SpawnCommand();
new RankCommand(this); new RankCommand(this);
new WeaponCommand(this); new WeaponCommand(this);
bossbar = Bukkit.createBossBar(ChatColor.GOLD + "Kuudra", BarColor.RED, BarStyle.SEGMENTED_12); 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 MenuListener(), this);
Bukkit.getPluginManager().registerEvents(new ScoreboardListener(this), this); Bukkit.getPluginManager().registerEvents(new ScoreboardListener(this), this);
Bukkit.getPluginManager().registerEvents(new CustomItemEvents(), this); Bukkit.getPluginManager().registerEvents(new CustomItemEvents(), this);
Bukkit.getPluginManager().registerEvents(new SpawnCommand(this), this);
nameTagManager = new NameTagManager(this); nameTagManager = new NameTagManager(this);
rankManager = new RankManager(this); rankManager = new RankManager(this);
sideBarManager = new SideBarManager(this); sideBarManager = new SideBarManager();
belowNameManager = new BelowNameManager(); belowNameManager = new BelowNameManager();
new EnchantmentManager(); new EnchantmentManager();
customItemManager = new CustomItemManager(this); customItemManager = new CustomItemManager(this);