plugin: remove hologramapi support. too tacky.

This commit is contained in:
2021-06-10 23:06:36 -07:00
parent 2d5a171f72
commit 2fd43aba13
2 changed files with 0 additions and 151 deletions

View File

@@ -45,7 +45,6 @@ public class Plugin extends JavaPlugin {
Logger log = Logger.getLogger("Regions");
RegionManager m_regions;
PlayerWatcher m_playerWatcher;
RegionPostManager m_regionPosts;
public RegionManager regionManager() {
return m_regions;
@@ -65,14 +64,6 @@ public class Plugin extends JavaPlugin {
getCommand("regions").setExecutor(new RegionsCommand(this));
getCommand("regionop").setExecutor(new RegionOpCommand(this));
boolean useHolograms = getServer().getPluginManager().isPluginEnabled("HolographicDisplays");
if (!useHolograms) {
log.info("HolographicDisplays not enabled. Region posts will not have holograms.");
}
m_regionPosts = new RegionPostManager(m_regions, this, useHolograms);
// TODO: Make holograms configurable. Disabled by default for now.
//getServer().getPluginManager().registerEvents(m_regionPosts, this);
loadRegions();
m_playerWatcher.recalculatePlayerRegions(true);
org.bukkit.plugin.Plugin mapPlugin = getServer().getPluginManager().getPlugin("dynmap");
@@ -120,7 +111,6 @@ public class Plugin extends JavaPlugin {
}
public void onDisable() {
m_regionPosts.release();
saveRegions();
log.info("Plugin disabled");
}