diff --git a/src/com/massivecraft/factions/cmd/CmdDescription.java b/src/com/massivecraft/factions/cmd/CmdDescription.java index e4450807..d9637ee8 100644 --- a/src/com/massivecraft/factions/cmd/CmdDescription.java +++ b/src/com/massivecraft/factions/cmd/CmdDescription.java @@ -32,13 +32,13 @@ public class CmdDescription extends FCommand // if economy is enabled, they're not on the bypass list, and this command has a cost set, make 'em pay if ( ! payForCommand(Conf.econCostDesc, "to change faction description", "for changing faction description")) return; - myFaction.setDescription(TextUtil.implode(args, " ")); - + myFaction.setDescription(TextUtil.implode(args, " ").replaceAll("(&([a-f0-9]))", "& $2")); // since "&" color tags seem to work even through plain old FPlayer.sendMessage() for some reason, we need to break those up + // Broadcast the description to everyone for (FPlayer fplayer : FPlayers.i.getOnline()) { fplayer.msg("The faction %s changed their description to:", myFaction.describeTo(fplayer)); - fplayer.msg(""+myFaction.getDescription()); + fplayer.sendMessage(myFaction.getDescription()); // players can inject "&" or "`" or "" or whatever in their description; &k is particularly interesting looking } }