mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-08 03:49:30 +01:00
Merge branch 'master' into spigot
This commit is contained in:
commit
96dba40e2e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user