mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-07 03:19:54 +01:00
updated plugin.yml
This commit is contained in:
parent
d8acf54d40
commit
991a2f08ac
@ -42,7 +42,7 @@ public class Lang {
|
||||
public static String translateInsertVariables(String s, Object... args) {
|
||||
String translation = instance.translate(s);
|
||||
for (int i = 1; i <= args.length; i++) {
|
||||
translation = translation.replaceAll("%" + i + "$s", args[i].toString());
|
||||
translation = translation.replaceAll("%" + i + "$s", args[i-1].toString());
|
||||
}
|
||||
return translation;
|
||||
}
|
||||
@ -50,7 +50,7 @@ public class Lang {
|
||||
public static String translateInsertVariablesColor(String s, Object... args) {
|
||||
String translation = instance.translateColor(s);
|
||||
for (int i = 1; i <= args.length; i++) {
|
||||
translation = translation.replaceAll("%" + i + "$s", args[i].toString());
|
||||
translation = translation.replaceAll("%" + i + "$s", args[i-1].toString());
|
||||
}
|
||||
return translation;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user