diff --git a/src/main/java/me/clip/placeholderapi/events/ExpansionsLoadedEvent.java b/src/main/java/me/clip/placeholderapi/events/ExpansionsLoadedEvent.java index 8a97567..d949b8a 100644 --- a/src/main/java/me/clip/placeholderapi/events/ExpansionsLoadedEvent.java +++ b/src/main/java/me/clip/placeholderapi/events/ExpansionsLoadedEvent.java @@ -6,9 +6,7 @@ import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; /** - * This event is ran when all expansions are loaded. - * This is done when reloading config, on plugin start and on server load. - * @author jacobbordas (@ignissak) + * This event is called when all expansions are loaded (when reloading config, on plugin start and on server load). */ public class ExpansionsLoadedEvent extends Event { diff --git a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java index ac3527f..f0add00 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java +++ b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java @@ -322,8 +322,7 @@ public final class LocalExpansionManager implements Listener { registered == 0 ? "&6No expansions were registered!" : registered + "&a placeholder hooks successfully registered!"); - final ExpansionsLoadedEvent event = new ExpansionsLoadedEvent(); - Bukkit.getPluginManager().callEvent(event); + Bukkit.getPluginManager().callEvent(new ExpansionsLoadedEvent()); }); }