From e0dc7a7a9f15d0551ed003c8e59653e7c1ccd4af Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Sun, 11 Aug 2024 13:34:48 +0800 Subject: [PATCH] fix --- src/main/java/com/yaohun/enderdragonwars/Main.java | 6 ++---- .../listener/{LikeListener.java => LiveListener.java} | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) rename src/main/java/com/yaohun/enderdragonwars/listener/{LikeListener.java => LiveListener.java} (98%) diff --git a/src/main/java/com/yaohun/enderdragonwars/Main.java b/src/main/java/com/yaohun/enderdragonwars/Main.java index d1f028f..3143e5c 100644 --- a/src/main/java/com/yaohun/enderdragonwars/Main.java +++ b/src/main/java/com/yaohun/enderdragonwars/Main.java @@ -3,9 +3,8 @@ package com.yaohun.enderdragonwars; import com.yaohun.enderdragonwars.effect.types.*; import com.yaohun.enderdragonwars.game.Game; import com.yaohun.enderdragonwars.listener.GameListener; +import com.yaohun.enderdragonwars.listener.LiveListener; import com.yaohun.enderdragonwars.listener.PlayerListener; -import com.yaohun.enderdragonwars.liveevent.LikeListener; -import com.yaohun.enderdragonwars.liveevent.LiveEvent; import com.yaohun.enderdragonwars.manager.GameManager; import com.yaohun.enderdragonwars.manager.GiftEffectManager; import org.bukkit.Bukkit; @@ -29,8 +28,7 @@ public class Main extends JavaPlugin { Bukkit.getPluginManager().registerEvents(new PlayerListener(), this); Bukkit.getPluginManager().registerEvents(new GameListener(), this); - Bukkit.getPluginManager().registerEvents(new LiveEvent(), this); - Bukkit.getPluginManager().registerEvents(new LikeListener(), this); + Bukkit.getPluginManager().registerEvents(new LiveListener(), this); } @Override diff --git a/src/main/java/com/yaohun/enderdragonwars/listener/LikeListener.java b/src/main/java/com/yaohun/enderdragonwars/listener/LiveListener.java similarity index 98% rename from src/main/java/com/yaohun/enderdragonwars/listener/LikeListener.java rename to src/main/java/com/yaohun/enderdragonwars/listener/LiveListener.java index 48e2739..6d567ed 100644 --- a/src/main/java/com/yaohun/enderdragonwars/listener/LikeListener.java +++ b/src/main/java/com/yaohun/enderdragonwars/listener/LiveListener.java @@ -13,7 +13,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; -public class LikeListener implements Listener { +public class LiveListener implements Listener { @EventHandler public void onDianZan(LiveLikeEvents e) {