if (needReplacement.get(template)) text = text.replace("_", "\\_");
return text;
}
public static String formatForMinecraft(ChannelConfig config, Message message) {
String serverID = message.getChannelReceiver().getServer().getId();
<BUG>String s = config.minecraft.chatTemplate.replace("%a", message.getAuthor().getName());
</BUG>
String nickname = (message.getAuthor().getNickname(serverID) != null) ? message.getAuthor().getNickname(serverID) : message.getAuthor().getName();
<BUG>s = s.replace("%n", nickname);
</BUG>
int position = 0;

if (needReplacement.get(template)) text = text.replace("_", "\\_");
return text;
}
public static String formatForMinecraft(ChannelConfig config, Message message) {
String serverID = message.getChannelReceiver().getServer().getId();
String s = config.minecraft.chatTemplate.replace("%u", message.getAuthor().getName());
String nickname = (message.getAuthor().getNickname(serverID) != null) ? message.getAuthor().getNickname(serverID) : message.getAuthor().getName();
s = s.replace("%a", nickname);
