summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-08-31 13:20:36 +0100
committerKHobbits <rob@khobbits.co.uk>2013-08-31 13:20:36 +0100
commit13436732d0c3bbfb7767a2bfb79a0cd4e8623036 (patch)
tree0bc816a179ec24292022524599269c12f7df1be1
parent6edc53fec603a0024e8c26931f229db3394767e2 (diff)
downloadEssentials-13436732d0c3bbfb7767a2bfb79a0cd4e8623036.tar
Essentials-13436732d0c3bbfb7767a2bfb79a0cd4e8623036.tar.gz
Essentials-13436732d0c3bbfb7767a2bfb79a0cd4e8623036.tar.lz
Essentials-13436732d0c3bbfb7767a2bfb79a0cd4e8623036.tar.xz
Essentials-13436732d0c3bbfb7767a2bfb79a0cd4e8623036.zip
Add support for coloured authors on books
Fixes ESS-4690
-rw-r--r--Essentials/src/com/earth2me/essentials/MetaItemStack.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/MetaItemStack.java b/Essentials/src/com/earth2me/essentials/MetaItemStack.java
index 57426ed4b..b813c2edd 100644
--- a/Essentials/src/com/earth2me/essentials/MetaItemStack.java
+++ b/Essentials/src/com/earth2me/essentials/MetaItemStack.java
@@ -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);