obviously, since / counts as the start of a line in clan chat all / get negated
idk if theres a way around but ill leave your report here in case there is.
message.replaceFirst("^/", ""); instead of message.replace("/", "");
errors (illegal/unsupported escape sequence/@not null string regex)
public String serialize() {
return "{\"clan\":\"" + clan + "\",\"from\":\"" + from + "\",\"message\":\"" + message.replace("\\", "/").replace("\"", "\\\"") + "\"}";
}
this' used for clanchat ._.