mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-28 12:07:35 +01:00
Fixed ClassCastExceptions related to InspectResponse #458
This commit is contained in:
parent
d3bf6b4063
commit
8d3afc9286
@ -189,7 +189,7 @@ public class BukkitInformationManager extends InformationManager {
|
||||
} else {
|
||||
pluginsTabContents.put(uuid, contents);
|
||||
Response inspectResponse = PageCache.loadPage("inspectPage: " + uuid);
|
||||
if (inspectResponse != null) {
|
||||
if (inspectResponse != null && inspectResponse instanceof InspectPageResponse) {
|
||||
((InspectPageResponse) inspectResponse).setInspectPagePluginsTab(contents);
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Licence is provided in the jar as license.yml also here:
|
||||
* https://github.com/Rsl1122/Plan-PlayerAnalytics/blob/master/Plan/src/main/resources/license.yml
|
||||
*/
|
||||
@ -315,7 +315,7 @@ public class BungeeInformationManager extends InformationManager {
|
||||
perServerPluginsTab.put(serverUUID, html);
|
||||
pluginsTabContent.put(uuid, perServerPluginsTab);
|
||||
Response inspectResponse = PageCache.loadPage("inspectPage: " + uuid);
|
||||
if (inspectResponse != null) {
|
||||
if (inspectResponse != null && inspectResponse instanceof InspectPageResponse) {
|
||||
((InspectPageResponse) inspectResponse).setInspectPagePluginsTab(getPluginsTabContent(uuid));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user