实现玩家在告示牌上用 &+对应字符 可以让后面行的颜色变成对应的颜色
监听SignChangeEvent
复制代码
- String[] lines = event.getLines()
- for (int index = 0; index < lines.length; index++) {
- event.setLine(index, ChatColor.translateAlternateColorCodes('&', lines[index]))
- }