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) {