Merge branch 'master' into spigot

This commit is contained in:
sekwah 2018-01-22 21:57:52 +00:00
commit 96dba40e2e

View File

@ -42,7 +42,6 @@ public class Lang {
public static String translateInsertVariables(String s, Object... args) {
String translation = instance.translate(s);
for (int i = 1; i <= args.length; i++) {
System.out.printf("Replace %s with %s%n", "%" + i + "$s", args[i-1].toString());;
translation = translation.replaceAll("%" + i + "\\$s", args[i-1].toString());
}
return translation;
@ -51,7 +50,6 @@ public class Lang {
public static String translateInsertVariablesColor(String s, Object... args) {
String translation = instance.translateColor(s);
for (int i = 1; i <= args.length; i++) {
System.out.printf("Replace %s with %s%n", "%" + i + "$s", args[i-1].toString());;
translation = translation.replaceAll("%" + i + "\\$s", args[i-1].toString());
}
return translation;