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
74c8ae06fa
commit
d7dd3ba9cd
@ -7,19 +7,19 @@ import org.bukkit.event.player.PlayerChangedWorldEvent;
|
||||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
|
||||
import cn.citycraft.PluginHelper.kit.PKit;
|
||||
import cn.citycraft.PluginHelper.bukkit.P;
|
||||
import pw.yumc.MiaoBoard.config.MiaoBoardConfig;
|
||||
import pw.yumc.MiaoBoard.scoreboard.ScoreBoardManager;
|
||||
|
||||
/**
|
||||
* 玩家监听
|
||||
*
|
||||
*
|
||||
* @since 2016年6月24日 下午3:29:39
|
||||
* @author 喵♂呜
|
||||
*/
|
||||
public class PlayerListener implements Listener {
|
||||
public PlayerListener() {
|
||||
Bukkit.getPluginManager().registerEvents(this, PKit.i());
|
||||
Bukkit.getPluginManager().registerEvents(this, P.instance);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
@ -5,8 +5,8 @@ import java.util.List;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import cn.citycraft.PluginHelper.bukkit.P;
|
||||
import cn.citycraft.PluginHelper.config.FileConfig;
|
||||
import cn.citycraft.PluginHelper.kit.PKit;
|
||||
import cn.citycraft.PluginHelper.scoreboard.BoardUpdateFunction;
|
||||
import cn.citycraft.PluginHelper.scoreboard.Condition;
|
||||
import cn.citycraft.PluginHelper.scoreboard.SidebarBoard;
|
||||
@ -18,13 +18,13 @@ import pw.yumc.MiaoBoard.scoreboard.updater.TitleUpdater;
|
||||
|
||||
/**
|
||||
* 记分板管理类
|
||||
*
|
||||
*
|
||||
* @since 2016年6月24日 下午3:31:31
|
||||
* @author 喵♂呜
|
||||
*/
|
||||
public class ScoreBoardManager {
|
||||
public static Status cot = new Status();
|
||||
public static SidebarBoard sbd = new SidebarBoard(PKit.i(), new BoardUpdateFunction(new TitleUpdater(), new BodyUpdater()));
|
||||
public static SidebarBoard sbd = new SidebarBoard(P.instance, new BoardUpdateFunction(new TitleUpdater(), new BodyUpdater()));
|
||||
public static FileConfig config = MiaoBoardConfig.i().getConfig();;
|
||||
public static List<BoardModel> bms = new ArrayList<>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user