From cee214cc981f64e07456274d1d726942f4093273 Mon Sep 17 00:00:00 2001 From: extendedclip Date: Sat, 4 May 2019 20:15:00 -0400 Subject: [PATCH] Remove PluginEnableEvent listener. Not needed anymore. --- .../me/clip/placeholderapi/PlaceholderListener.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/PlaceholderListener.java b/src/main/java/me/clip/placeholderapi/PlaceholderListener.java index 1edcde8..b46a1a2 100644 --- a/src/main/java/me/clip/placeholderapi/PlaceholderListener.java +++ b/src/main/java/me/clip/placeholderapi/PlaceholderListener.java @@ -26,7 +26,6 @@ import java.util.Set; import me.clip.placeholderapi.events.ExpansionUnregisterEvent; import me.clip.placeholderapi.expansion.Cacheable; import me.clip.placeholderapi.expansion.Cleanable; -import me.clip.placeholderapi.expansion.ExpansionManager; import me.clip.placeholderapi.expansion.PlaceholderExpansion; import me.clip.placeholderapi.expansion.Taskable; import me.clip.placeholderapi.expansion.cloud.CloudExpansion; @@ -38,7 +37,6 @@ import org.bukkit.event.HandlerList; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.event.server.PluginDisableEvent; -import org.bukkit.event.server.PluginEnableEvent; import org.bukkit.event.server.ServerLoadEvent; @@ -84,17 +82,6 @@ public class PlaceholderListener implements Listener { } } - @EventHandler - public void onEnable(PluginEnableEvent event) { - ExpansionManager m = plugin.getExpansionManager(); - PlaceholderExpansion e = m.getCachedExpansion(event.getPlugin().getName().toLowerCase()); - if (e != null && e.canRegister()) { - if (e.isRegistered() || m.registerExpansion(e)) { - m.removeCachedExpansion(e.getRequiredPlugin()); - } - } - } - @EventHandler(priority = EventPriority.HIGH) public void onPluginUnload(PluginDisableEvent e) {