lgou2w/ldk

NullPointerException error caused by ChatSerializer.fromRaw

Closed this issue · 2 comments

Caused:

val raw = "§lHello" // not a color, is formatter
ChatSerializer.fromRaw(raw) // throw NullPointerException

See:

ChatColor.OBFUSCATED -> style.notNull().setObfuscated(true)
ChatColor.BOLD -> style.notNull().setBold(true)
ChatColor.STRIKETHROUGH -> style.notNull().setStrikethrough(true)
ChatColor.UNDERLINE -> style.notNull().setUnderlined(true)
ChatColor.ITALIC -> style.notNull().setItalic(true)

Will not be released in the hot fix version, please use the latest snapshot :(

Fixed in 0.1.9-SNAPSHOT.