2025-01-20 16:17:06 +08:00

71 lines
2.7 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
*
* 本项目已于 2025.1.20 存档,目前停止开发
*
* =====================================================================
*
* 当前进度
* player -> main -> event -> say 待修复
* tip: 目前存在异常输出的问题
*
*
* player -> main -> pCase 当前开发进度
*
* ======================================================================
*
*如果你认为项目能帮到你,并且你可以继续完成剩余的开发工作
*亦或者你想看到项目的最终成品,想要 Da_nuo & BRanulf_Lode 继续完成开发,我们会考虑
*
*
* 感谢!
*/
/*
本项目进入静默开发阶段 >︿<
*/
package org.start;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import org.start.command.commandTab;
import org.start.command.command;
import org.start.player.cuan_song.chuan_song;
import org.start.data.worldSpawnItem;
import org.start.player.main.model.def_path;
import org.start.player.bossbar.boss_bar_runs;
import org.start.player.main.run_;
public class run extends JavaPlugin implements Listener {
@Override
public void onEnable() {
saveDefaultConfig(); //加载默认配置
// 截至目前,加入队伍后出现报错,可能是管理进度条的类出现问题。
//开始初始化 这几句都是爷,必须最先初始化
new print(this); // <------- 初始化信息输出类,位于当前文件
new worldSpawnItem(this); // <------- 初始化传送点获取类位于data
def_path.def_path_(this); // <------- 初始化玩家占领点获取类位于player -> main
new def_path().initPath(); // <------- 初始化占领点位置
new boss_bar_runs(this); // <------- 初始化进度条类位于player -> main
boss_bar_runs.main_runs_(); // <------- 实例化进度条辅助类
new run_(this); // <------- 初始化核心调度类
new chuan_song(this).initLocation(); //初始化玩家传送点 (这个this真的给我整红温了)
// 开始注册监听器
getCommand("war").setExecutor(new command()); //注册命令执行器
getCommand("war").setTabCompleter(new commandTab()); //注册命令补全器
//getServer().getPluginManager().registerEvents(new set_spawn(this), this); //注册玩家加入队伍后管理传送的监听器 (重生后移动)
getLogger().info("\033[92m" + "守塔模式 插件加载成功!" + "\033[0m");
getLogger().info("\033[92m" + "作者Da_nuo & BRanulf_Lode" + "\033[0m");
}
}