From eb503fdfa831caf995757cff9194e923bb39c7ae Mon Sep 17 00:00:00 2001 From: Kakifrucht Date: Wed, 29 Jun 2016 19:10:07 +0200 Subject: [PATCH] Fix formatting codes in description --- src/main/java/com/massivecraft/factions/cmd/CmdDescription.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdDescription.java b/src/main/java/com/massivecraft/factions/cmd/CmdDescription.java index 349d7465..7395e43e 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdDescription.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdDescription.java @@ -36,7 +36,7 @@ public class CmdDescription extends FCommand { // since "&" color tags seem to work even through plain old FPlayer.sendMessage() for some reason, we need to break those up // And replace all the % because it messes with string formatting and this is easy way around that. - myFaction.setDescription(TextUtil.implode(args, " ").replaceAll("%", "").replaceAll("(&([a-f0-9]))", "& $2")); + myFaction.setDescription(TextUtil.implode(args, " ").replaceAll("%", "").replaceAll("(&([a-f0-9klmnor]))", "& $2")); if (!Conf.broadcastDescriptionChanges) { fme.msg(TL.COMMAND_DESCRIPTION_CHANGED, myFaction.describeTo(fme));