Fix zero length prefixes from locale files

This commit is contained in:
Luck 2017-11-21 15:44:22 +00:00
parent 52ebfe9309
commit 29eba93ee3
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -469,10 +469,6 @@ public enum Message {
s = message; s = message;
} }
if (s.startsWith("&")) {
prefix = prefix.substring(0, prefix.length() - 2);
}
s = format(s.replace("{PREFIX}", prefix).replace("\\n", "\n"), objects); s = format(s.replace("{PREFIX}", prefix).replace("\\n", "\n"), objects);
return CommandUtils.color(showPrefix ? prefix + s : s); return CommandUtils.color(showPrefix ? prefix + s : s);
} }