From 8f5b2fb3d76f4ac027b96323ee7e45c69071a9c7 Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Tue, 6 Aug 2024 14:06:02 +0800 Subject: [PATCH] fix-1 --- src/main/java/com/yaohun/questsystem/Main.java | 4 ++-- .../listener/{JoinEvent.java => PlayerListener.java} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/java/com/yaohun/questsystem/listener/{JoinEvent.java => PlayerListener.java} (95%) diff --git a/src/main/java/com/yaohun/questsystem/Main.java b/src/main/java/com/yaohun/questsystem/Main.java index a64b496..a24e78b 100644 --- a/src/main/java/com/yaohun/questsystem/Main.java +++ b/src/main/java/com/yaohun/questsystem/Main.java @@ -4,7 +4,7 @@ import com.yaohun.questsystem.api.QuestAPI; import com.yaohun.questsystem.data.PlayerData; import com.yaohun.questsystem.data.QuestData; import com.yaohun.questsystem.data.database.SqlManager; -import com.yaohun.questsystem.listener.JoinEvent; +import com.yaohun.questsystem.listener.PlayerListener; import com.yaohun.questsystem.manage.DataManage; import com.yaohun.questsystem.util.SqlUtil; import com.yaohun.questsystem.util.TimeType; @@ -34,7 +34,7 @@ public class Main extends JavaPlugin { for (Player player : Bukkit.getOnlinePlayers()) { Main.dataManage.loadPlayerData(player); } - getServer().getPluginManager().registerEvents(new JoinEvent(), this); + getServer().getPluginManager().registerEvents(new PlayerListener(), this); DemonAPI.sendConsoleMessage("§f[§6!§f] §aQuestSystem §f加载完成,祝你使用愉快!"); DemonAPI.sendConsoleMessage("§f[§6!§f] §b极光像素工作室出品"); } diff --git a/src/main/java/com/yaohun/questsystem/listener/JoinEvent.java b/src/main/java/com/yaohun/questsystem/listener/PlayerListener.java similarity index 95% rename from src/main/java/com/yaohun/questsystem/listener/JoinEvent.java rename to src/main/java/com/yaohun/questsystem/listener/PlayerListener.java index ba8c711..fa8d391 100644 --- a/src/main/java/com/yaohun/questsystem/listener/JoinEvent.java +++ b/src/main/java/com/yaohun/questsystem/listener/PlayerListener.java @@ -9,7 +9,7 @@ import org.bukkit.event.player.PlayerKickEvent; import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.scheduler.BukkitRunnable; -public class JoinEvent implements Listener { +public class PlayerListener implements Listener { @EventHandler public void onJoin(PlayerJoinEvent e) {