mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-10 01:11:34 +01:00
Fixed player page response when no bukkit servers were online
This commit is contained in:
parent
76aac83cc9
commit
a17ab55bc1
@ -115,10 +115,10 @@
|
|||||||
<id>paper-repo</id>
|
<id>paper-repo</id>
|
||||||
<url>https://repo.destroystokyo.com/repository/maven-public/</url>
|
<url>https://repo.destroystokyo.com/repository/maven-public/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>sponge-repo</id>
|
<id>sponge-repo</id>
|
||||||
<url>https://repo.spongepowered.org/maven</url>
|
<url>https://repo.spongepowered.org/maven</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -251,80 +251,80 @@
|
|||||||
<artifactId>bungeecord-chat</artifactId>
|
<artifactId>bungeecord-chat</artifactId>
|
||||||
<groupId>net.md-5</groupId>
|
<groupId>net.md-5</groupId>
|
||||||
</exclusion>
|
</exclusion>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<artifactId>guava</artifactId>
|
<artifactId>guava</artifactId>
|
||||||
<groupId>com.google.guava</groupId>
|
<groupId>com.google.guava</groupId>
|
||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
<groupId>org.spongepowered</groupId>
|
||||||
|
<artifactId>spongeapi</artifactId>
|
||||||
|
<version>7.0.0</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>error_prone_annotations</artifactId>
|
||||||
|
<groupId>com.google.errorprone</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>guice</artifactId>
|
||||||
|
<groupId>com.google.inject</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>caffeine</artifactId>
|
||||||
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>guava</artifactId>
|
||||||
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>plugin-meta</artifactId>
|
||||||
<groupId>org.spongepowered</groupId>
|
<groupId>org.spongepowered</groupId>
|
||||||
<artifactId>spongeapi</artifactId>
|
</exclusion>
|
||||||
<version>7.0.0</version>
|
<exclusion>
|
||||||
<scope>provided</scope>
|
<artifactId>configurate-hocon</artifactId>
|
||||||
<exclusions>
|
<groupId>ninja.leaping.configurate</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>error_prone_annotations</artifactId>
|
<exclusion>
|
||||||
<groupId>com.google.errorprone</groupId>
|
<artifactId>configurate-gson</artifactId>
|
||||||
</exclusion>
|
<groupId>ninja.leaping.configurate</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>guice</artifactId>
|
<exclusion>
|
||||||
<groupId>com.google.inject</groupId>
|
<artifactId>configurate-yaml</artifactId>
|
||||||
</exclusion>
|
<groupId>ninja.leaping.configurate</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>caffeine</artifactId>
|
<exclusion>
|
||||||
<groupId>com.github.ben-manes.caffeine</groupId>
|
<artifactId>flow-math</artifactId>
|
||||||
</exclusion>
|
<groupId>com.flowpowered</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>guava</artifactId>
|
<exclusion>
|
||||||
<groupId>com.github.ben-manes.caffeine</groupId>
|
<artifactId>flow-noise</artifactId>
|
||||||
</exclusion>
|
<groupId>com.flowpowered</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>plugin-meta</artifactId>
|
<exclusion>
|
||||||
<groupId>org.spongepowered</groupId>
|
<artifactId>asm</artifactId>
|
||||||
</exclusion>
|
<groupId>org.ow2.asm</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>configurate-hocon</artifactId>
|
<exclusion>
|
||||||
<groupId>ninja.leaping.configurate</groupId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
</exclusion>
|
<groupId>org.slf4j</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>configurate-gson</artifactId>
|
<exclusion>
|
||||||
<groupId>ninja.leaping.configurate</groupId>
|
<artifactId>jsr305</artifactId>
|
||||||
</exclusion>
|
<groupId>com.google.code.findbugs</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>configurate-yaml</artifactId>
|
<exclusion>
|
||||||
<groupId>ninja.leaping.configurate</groupId>
|
<artifactId>gson</artifactId>
|
||||||
</exclusion>
|
<groupId>com.google.code.gson</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>flow-math</artifactId>
|
<exclusion>
|
||||||
<groupId>com.flowpowered</groupId>
|
<artifactId>guava</artifactId>
|
||||||
</exclusion>
|
<groupId>com.google.guava</groupId>
|
||||||
<exclusion>
|
</exclusion>
|
||||||
<artifactId>flow-noise</artifactId>
|
</exclusions>
|
||||||
<groupId>com.flowpowered</groupId>
|
</dependency>
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<artifactId>asm</artifactId>
|
|
||||||
<groupId>org.ow2.asm</groupId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<artifactId>slf4j-api</artifactId>
|
|
||||||
<groupId>org.slf4j</groupId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<artifactId>jsr305</artifactId>
|
|
||||||
<groupId>com.google.code.findbugs</groupId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<artifactId>gson</artifactId>
|
|
||||||
<groupId>com.google.code.gson</groupId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<artifactId>guava</artifactId>
|
|
||||||
<groupId>com.google.guava</groupId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-core</artifactId>
|
<artifactId>mockito-core</artifactId>
|
||||||
|
@ -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