mirror of
https://github.com/HibiscusMC/HibiscusCommons.git
synced 2025-12-19 15:09:26 +00:00
ref: rename from AllHooksActiveEvent.java -> HibiscusHooksAllActiveEvent
This commit is contained in:
@@ -4,7 +4,7 @@ import org.bukkit.event.Event;
|
|||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class AllHooksActiveEvent extends Event {
|
public class HibiscusHooksAllActiveEvent extends Event {
|
||||||
|
|
||||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@ package me.lojosho.hibiscuscommons.hooks;
|
|||||||
import me.clip.placeholderapi.PlaceholderAPI;
|
import me.clip.placeholderapi.PlaceholderAPI;
|
||||||
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
||||||
import me.lojosho.hibiscuscommons.HibiscusCommonsPlugin;
|
import me.lojosho.hibiscuscommons.HibiscusCommonsPlugin;
|
||||||
import me.lojosho.hibiscuscommons.api.events.AllHooksActiveEvent;
|
import me.lojosho.hibiscuscommons.api.events.HibiscusHooksAllActiveEvent;
|
||||||
import me.lojosho.hibiscuscommons.hooks.items.*;
|
import me.lojosho.hibiscuscommons.hooks.items.*;
|
||||||
import me.lojosho.hibiscuscommons.hooks.misc.*;
|
import me.lojosho.hibiscuscommons.hooks.misc.*;
|
||||||
import me.lojosho.hibiscuscommons.hooks.placeholders.HookPlaceholderAPI;
|
import me.lojosho.hibiscuscommons.hooks.placeholders.HookPlaceholderAPI;
|
||||||
@@ -83,7 +83,7 @@ public class Hooks {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if all hooked hooks are actually active
|
* Checks if all hooked hooks are actually active
|
||||||
* so {@link AllHooksActiveEvent} is called.
|
* so {@link HibiscusHooksAllActiveEvent} is called.
|
||||||
* This is an operation that occurs only once to allow plugins
|
* This is an operation that occurs only once to allow plugins
|
||||||
* load their stuff successfully when all hooks are active.
|
* load their stuff successfully when all hooks are active.
|
||||||
*/
|
*/
|
||||||
@@ -98,7 +98,7 @@ public class Hooks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
allHooksActive = true;
|
allHooksActive = true;
|
||||||
Bukkit.getPluginManager().callEvent(new AllHooksActiveEvent());
|
Bukkit.getPluginManager().callEvent(new HibiscusHooksAllActiveEvent());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|||||||
Reference in New Issue
Block a user