for (int i = 0; i < lines.length; ++i) {
lines[i] = message.getMessage()[i].asPlaintext();
}
Location location = new Location(player.getWorld(), message.getX(), message.getY(), message.getZ());
if (player.checkSignLocation(location)) {
// update the sign if it's actually still there
BlockState state = location.getBlock().getState();
if (state instanceof Sign) {
Sign sign = (Sign) state;
for (int i = 0; i < lines.length; ++i) {