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