1
0
mirror of https://e.coding.net/circlecloud/MiaoBoard.git synced 2024-11-22 01:49:05 +00:00

feat: 更新类库导入

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-07-23 14:37:39 +08:00
parent 74c8ae06fa
commit d7dd3ba9cd
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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<>();