Fixed javadoc errors

This commit is contained in:
Risto Lahtela 2021-01-05 11:59:55 +02:00
parent 36011b5ff9
commit f9d1794e79
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class BukkitPartBuilder implements MessageBuilder {
try {
nextPart.part.appendLegacy(text);
} catch (NoSuchMethodError oldVersion) { // not supported in 1.8
nextPart.part.append(ChatColor.translateAlternateColorCodes('§', text));
nextPart.part.append(ChatColor.translateAlternateColorCodes('\u00a7', text));
}
return nextPart;
}

View File

@ -39,7 +39,7 @@ import java.util.function.Supplier;
* - mappers are stateless type transformers in memory
* <p>
* Example use-case:
* - PlayerJoinEvent -> mapped to a generic event
* - PlayerJoinEvent is mapped to a generic event
* - that generic event is then consumed and mapped until the data is in a database.
* <p>
* - Some kind of data is wanted to place on a web page

View File

@ -22,6 +22,6 @@ public class ConsoleChatFormatter extends ChatFormatter {
@Override
public int getWidth(String part) {
return part.length() - (StringUtils.countMatches(part, '§') * 2);
return part.length() - (StringUtils.countMatches(part, '\u00a7') * 2);
}
}