mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-27 00:45:40 +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) {
|
||||
while (str.contains("{") && str.substring(str.indexOf("{")).contains("}")) {
|
||||
String holder = str.substring(str.indexOf("{") + 1, str.indexOf("}"));
|
||||
if(placeholders.containsKey(holder))
|
||||
str = str.replace("{" + holder + "}",placeholders.get(holder));
|
||||
String explored = str;
|
||||
while (explored.contains("{") && explored.substring(explored.indexOf("{")).contains("}")) {
|
||||
final int begin = explored.indexOf("{"), end = explored.indexOf("}");
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user