This commit is contained in:
YuTian 2024-08-06 14:06:02 +08:00
parent f4b37b12b5
commit 8f5b2fb3d7
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import com.yaohun.questsystem.api.QuestAPI;
import com.yaohun.questsystem.data.PlayerData; import com.yaohun.questsystem.data.PlayerData;
import com.yaohun.questsystem.data.QuestData; import com.yaohun.questsystem.data.QuestData;
import com.yaohun.questsystem.data.database.SqlManager; 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.manage.DataManage;
import com.yaohun.questsystem.util.SqlUtil; import com.yaohun.questsystem.util.SqlUtil;
import com.yaohun.questsystem.util.TimeType; import com.yaohun.questsystem.util.TimeType;
@ -34,7 +34,7 @@ public class Main extends JavaPlugin {
for (Player player : Bukkit.getOnlinePlayers()) { for (Player player : Bukkit.getOnlinePlayers()) {
Main.dataManage.loadPlayerData(player); 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] §aQuestSystem §f加载完成,祝你使用愉快!");
DemonAPI.sendConsoleMessage("§f[§6!§f] §b极光像素工作室出品"); DemonAPI.sendConsoleMessage("§f[§6!§f] §b极光像素工作室出品");
} }

View File

@ -9,7 +9,7 @@ import org.bukkit.event.player.PlayerKickEvent;
import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitRunnable;
public class JoinEvent implements Listener { public class PlayerListener implements Listener {
@EventHandler @EventHandler
public void onJoin(PlayerJoinEvent e) { public void onJoin(PlayerJoinEvent e) {