mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Fixed some bugs resulting of my changes
This commit is contained in:
parent
d7f4168aa6
commit
fb4225a377
@ -181,12 +181,14 @@ public class HtmlUtils {
|
||||
Html.COLOR_A, Html.COLOR_B, Html.COLOR_C, Html.COLOR_D, Html.COLOR_E, Html.COLOR_F};
|
||||
|
||||
for (Html html : replacer) {
|
||||
string = string.replace("§" + html.name().charAt(6), html.parse());
|
||||
string = string.replace("§" + Character.toLowerCase(html.name().charAt(6)), html.parse());
|
||||
}
|
||||
|
||||
int spans = string.split("<span").length - 1;
|
||||
for (int i = 0; i < spans; i++) {
|
||||
string = Html.SPAN.parse(string);
|
||||
}
|
||||
|
||||
return string.replace("§r", "");
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,7 @@ public class Analysis {
|
||||
if (analysisTypes.contains(boolTot)) {
|
||||
replaceMap.put(source.getPlaceholder(boolTot.getPlaceholderModifier()), AnalysisUtils.getBooleanTotal(boolTot, source, uuids));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (NoClassDefFoundError | Exception e) {
|
||||
Log.error("A PluginData-source caused an exception: " + source.getPlaceholder("").replace("%", ""));
|
||||
|
||||
Log.toLog(this.getClass().getName(), e);
|
||||
|
@ -105,7 +105,7 @@ public class AnalysisUtils {
|
||||
return source.parseContainer("", "Wrong Analysistype specified: " + analysisType.name());
|
||||
}
|
||||
return source.parseContainer(analysisType.getModifier(), String.valueOf(total));
|
||||
} catch (Exception e) {
|
||||
} catch (Exception | NoClassDefFoundError e) {
|
||||
return logPluginDataCausedError(source, e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user