mirror of
https://e.coding.net/circlecloud/MiaoBoard.git
synced 2024-11-25 02:19:07 +00:00
feat: 添加任务管理类 记分板接口 简易记分板
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
c89f3df7ca
commit
8f02e902f0
@ -2,6 +2,8 @@ package pw.yumc.MiaoBoard;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import cn.citycraft.PluginHelper.commands.HandlerCommand;
|
||||
import cn.citycraft.PluginHelper.commands.HandlerCommands;
|
||||
import cn.citycraft.PluginHelper.config.FileConfig;
|
||||
|
||||
/**
|
||||
@ -10,7 +12,7 @@ import cn.citycraft.PluginHelper.config.FileConfig;
|
||||
* @since 2016年6月4日 上午9:08:13
|
||||
* @author 喵♂呜
|
||||
*/
|
||||
public class MiaoBoard extends JavaPlugin {
|
||||
public class MiaoBoard extends JavaPlugin implements HandlerCommands {
|
||||
private FileConfig config;
|
||||
|
||||
@Override
|
||||
@ -22,4 +24,9 @@ public class MiaoBoard extends JavaPlugin {
|
||||
public void onLoad() {
|
||||
config = new FileConfig(this);
|
||||
}
|
||||
|
||||
@HandlerCommand(name = "reload", description = "重新载入配置文件")
|
||||
public void reload() {
|
||||
config.reload();
|
||||
}
|
||||
}
|
||||
|
11
src/main/java/pw/yumc/MiaoBoard/runnable/TaskManager.java
Normal file
11
src/main/java/pw/yumc/MiaoBoard/runnable/TaskManager.java
Normal file
@ -0,0 +1,11 @@
|
||||
package pw.yumc.MiaoBoard.runnable;
|
||||
|
||||
/**
|
||||
* 线程任务管理类
|
||||
*
|
||||
* @since 2016年6月13日 下午5:02:06
|
||||
* @author 喵♂呜
|
||||
*/
|
||||
public class TaskManager {
|
||||
|
||||
}
|
11
src/main/java/pw/yumc/MiaoBoard/scoreboard/IScoreBoard.java
Normal file
11
src/main/java/pw/yumc/MiaoBoard/scoreboard/IScoreBoard.java
Normal file
@ -0,0 +1,11 @@
|
||||
package pw.yumc.MiaoBoard.scoreboard;
|
||||
|
||||
/**
|
||||
* 记分板基础接口
|
||||
*
|
||||
* @since 2016年6月13日 下午5:02:51
|
||||
* @author 喵♂呜
|
||||
*/
|
||||
public interface IScoreBoard {
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package pw.yumc.MiaoBoard.scoreboard;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.scoreboard.Scoreboard;
|
||||
|
||||
/**
|
||||
* 简易记分板
|
||||
*
|
||||
* @since 2016年6月13日 下午5:06:46
|
||||
* @author 喵♂呜
|
||||
*/
|
||||
public class SimpleScoreBoard implements IScoreBoard {
|
||||
private final Scoreboard board = Bukkit.getScoreboardManager().getNewScoreboard();
|
||||
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
#关闭记分板的世界
|
||||
DisableWorld:
|
||||
- WorldName
|
Loading…
Reference in New Issue
Block a user