Register GUI listener

This commit is contained in:
Teriuihi 2023-09-22 02:37:05 +02:00
parent b79540e317
commit 31b3cc69e4

View File

@ -6,6 +6,7 @@ import com.alttd.fishingevent.config.Fishes;
import com.alttd.fishingevent.config.Messages;
import com.alttd.fishingevent.config.NPCLocationConfig;
import com.alttd.fishingevent.fish_generator.WaterFishGenerator;
import com.alttd.fishingevent.gui.GUIListener;
import com.alttd.fishingevent.listeners.CatchFish;
import com.alttd.fishingevent.npc.NPCManager;
import com.alttd.fishingevent.points.PointsManagement;
@ -49,6 +50,7 @@ public final class FishingEvent extends JavaPlugin {
private void registerEvents(@NotNull PluginManager pluginManager) {
pluginManager.registerEvents(new CatchFish(logger, new WaterFishGenerator(Fishes.WATER_FISH.RARITY_FISH_MAP, logger), PointsManagement.getInstance()), this);
pluginManager.registerEvents(new GUIListener(), this);
}
private void registerCommands() {