mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-13 19:01:33 +01:00
Fixed player page response when no bukkit servers were online
This commit is contained in:
parent
76aac83cc9
commit
a17ab55bc1
@ -53,7 +53,7 @@ public class PlayerPageHandler extends PageHandler {
|
|||||||
InfoSystem.getInstance().generateAndCachePlayerPage(uuid);
|
InfoSystem.getInstance().generateAndCachePlayerPage(uuid);
|
||||||
response = ResponseCache.loadResponse(PageId.PLAYER.of(uuid));
|
response = ResponseCache.loadResponse(PageId.PLAYER.of(uuid));
|
||||||
}
|
}
|
||||||
return response;
|
return response != null ? response : notFound("No Bukkit servers online to perform the request.");
|
||||||
} else {
|
} else {
|
||||||
return notFound("Player has not played on this server.");
|
return notFound("Player has not played on this server.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user