摘要:
TextComponent rawMsg……//假设从外部获得一个初始文本 TextComponent extraMsg= new TextComponent(extraRawMsg);//创建一个组合文本(用于创建悬停事件) //这段文本就是玩家鼠标放上去会有响应的文本 extraMsg.setH 阅读全文
摘要:
直接上代码 @EventHandler public void onPlayerJoinEvent(PlayerJoinEvent event) { Player player = event.getPlayer(); Scoreboard scoreboard = player.getScoreb 阅读全文