Class ItemsAdderReloadGateListener
java.lang.Object
dev.cwhead.GravesX.listener.integration.itemsadder.ItemsAdderReloadGateListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listens for ItemsAdder reload-related commands and temporarily gates the
GravesX ItemsAdder integration as "not ready".
This prevents integration logic from running while ItemsAdder is rebuilding
its data (e.g., during /iareload or /iazip). Readiness should be
re-enabled when ItemsAdderLoadDataEvent fires again.
-
Constructor Summary
ConstructorsConstructorDescriptionItemsAdderReloadGateListener(Graves plugin, ItemsAdder integration) Creates the listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidonConsoleCommand(org.bukkit.event.server.ServerCommandEvent event) Detects reload commands sent by the console and gates integration readiness.voidonPlayerCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent event) Detects reload commands sent by players and gates integration readiness.
-
Constructor Details
-
ItemsAdderReloadGateListener
Creates the listener.- Parameters:
plugin- GravesX plugin instanceintegration- ItemsAdder integration wrapper
-
-
Method Details
-
onPlayerCommand
public void onPlayerCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent event) Detects reload commands sent by players and gates integration readiness.- Parameters:
event- player command event
-
onConsoleCommand
public void onConsoleCommand(org.bukkit.event.server.ServerCommandEvent event) Detects reload commands sent by the console and gates integration readiness.- Parameters:
event- console command event
-