1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 20:11:21 +02:00

Add support for coloured authors on books

Fixes ESS-4690
This commit is contained in:
KHobbits
2013-08-31 13:20:36 +01:00
parent 546ea270f0
commit 6020ebef97

View File

@@ -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);