mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Add support for coloured authors on books
Fixes ESS-4690
This commit is contained in:
parent
2973b1335c
commit
64743ef428
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ public class MetaItemStack
|
|||
}
|
||||
else if (split.length > 1 && split[0].equalsIgnoreCase("author") && stack.getType() == Material.WRITTEN_BOOK && hasMetaPermission(sender, "author", false, true, ess))
|
||||
{
|
||||
final String author = split[1];
|
||||
final String author = FormatUtil.replaceFormat(split[1]);
|
||||
final BookMeta meta = (BookMeta)stack.getItemMeta();
|
||||
meta.setAuthor(author);
|
||||
stack.setItemMeta(meta);
|
||||
|
|
Loading…
Reference in a new issue