mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-30 01:13:38 +01:00
Debug PAPI
This commit is contained in:
parent
90ee0c37bb
commit
4c7e0cac5c
@ -95,10 +95,16 @@ public class ClassSkill implements CooldownObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String applyPlaceholders(Map<String, String> placeholders, String str) {
|
private String applyPlaceholders(Map<String, String> placeholders, String str) {
|
||||||
while (str.contains("{") && str.substring(str.indexOf("{")).contains("}")) {
|
String explored = str;
|
||||||
String holder = str.substring(str.indexOf("{") + 1, str.indexOf("}"));
|
while (explored.contains("{") && explored.substring(explored.indexOf("{")).contains("}")) {
|
||||||
if(placeholders.containsKey(holder))
|
final int begin = explored.indexOf("{"), end = explored.indexOf("}");
|
||||||
str = str.replace("{" + holder + "}",placeholders.get(holder));
|
String holder = explored.substring(begin + 1, end);
|
||||||
|
|
||||||
|
if (placeholders.containsKey(holder))
|
||||||
|
str = str.replace("{" + holder + "}", placeholders.get(holder));
|
||||||
|
|
||||||
|
// Increase counter
|
||||||
|
explored = explored.substring(end + 1);
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user