Update src/main/java/com/songoda/ultimatestacker/UltimateStacker.java

This commit is contained in:
Brianna O'Keefe 2019-01-27 20:33:28 +00:00
parent 8ba24e5f67
commit 327d222841

View File

@ -205,8 +205,11 @@ public class UltimateStacker extends JavaPlugin {
Bukkit.getPluginManager().registerEvents(new EntityListeners(this), this); Bukkit.getPluginManager().registerEvents(new EntityListeners(this), this);
// Register Hologram Plugin // Register Hologram Plugin
if (pluginManager.isPluginEnabled("Arconix")) hologram = new HologramArconix(this); if (instance.getConfig().getBoolean("Spawners.Holograms Enabled")) {
else if (pluginManager.isPluginEnabled("HolographicDisplays")) hologram = new HologramHolographicDisplays(this); if (pluginManager.isPluginEnabled("HolographicDisplays"))
hologram = new HologramHolographicDisplays(this);
else if (pluginManager.isPluginEnabled("Arconix")) hologram = new HologramArconix(this);
}
Bukkit.getScheduler().runTaskTimerAsynchronously(this, this::saveToFile, 6000, 6000); Bukkit.getScheduler().runTaskTimerAsynchronously(this, this::saveToFile, 6000, 6000);