Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Changes -> Added RequestFailed stats
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfacheSache committed Aug 30, 2023
1 parent b402cd5 commit 2617335
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<dependency>
<groupId>com.github.CubeAttack</groupId>
<artifactId>EasyAPI</artifactId>
<version>b04b57c009</version>
<version>2b310c7217</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public Stats getStats() {
System.getProperty("os.version"),
getDescription().getVersion(),
getCore().getVersionResult().getVersionStatus().toString(),
getCore().getVersionResult().getError(),
Config.getAutoUpdaterSettings().toString(),
getCore().isSetup() ? getCore().getRestAPI().getPlan() : "§cNOT CONNECTED",
Arrays.toString(getPlugins().stream().filter(p -> !p.startsWith("cmd_") && !p.equals("reconnect_yaml")).toArray()),
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/de/cubeattack/neoprotect/core/model/Stats.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class Stats {
private final String osVersion;
private final String pluginVersion;
private final String versionStatus;
private final String versionError;
private final String updateSetting;
private final String neoProtectPlan;
private final String serverPlugins;
Expand All @@ -25,7 +26,7 @@ public class Stats {
private final boolean onlineMode;
private final boolean proxyProtocol;

public Stats(NeoProtectPlugin.PluginType serverType, String serverVersion, String serverName, String javaVersion, String osName, String osArch, String osVersion, String pluginVersion, String versionStatus, String updateSetting, String neoProtectPlan, String serverPlugins, int playerAmount, int managedServers, int coreCount, boolean onlineMode, boolean proxyProtocol) {
public Stats(NeoProtectPlugin.PluginType serverType, String serverVersion, String serverName, String javaVersion, String osName, String osArch, String osVersion, String pluginVersion, String versionStatus, String versionError, String updateSetting, String neoProtectPlan, String serverPlugins, int playerAmount, int managedServers, int coreCount, boolean onlineMode, boolean proxyProtocol) {
this.serverType = serverType.name().toLowerCase();
this.serverVersion = serverVersion;
this.serverName = serverName;
Expand All @@ -35,6 +36,7 @@ public Stats(NeoProtectPlugin.PluginType serverType, String serverVersion, Strin
this.osVersion = osVersion;
this.pluginVersion = pluginVersion;
this.versionStatus = versionStatus;
this.versionError = versionError;
this.updateSetting = updateSetting;
this.neoProtectPlan = neoProtectPlan;
this.serverPlugins = serverPlugins;
Expand Down Expand Up @@ -81,6 +83,10 @@ public String getVersionStatus() {
return versionStatus;
}

public String getVersionError() {
return versionError;
}

public String getUpdateSetting() {
return updateSetting;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public Stats getStats() {
System.getProperty("os.version"),
getPluginVersion(),
getCore().getVersionResult().getVersionStatus().toString(),
getCore().getVersionResult().getError(),
Config.getAutoUpdaterSettings().toString(),
getCore().isSetup() ? getCore().getRestAPI().getPlan() : "§cNOT CONNECTED",
Arrays.toString(getPlugins().stream().filter(p -> !p.startsWith("cmd_") && !p.equals("reconnect_yaml")).toArray()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public Stats getStats() {
System.getProperty("os.version"),
getPluginVersion(),
getCore().getVersionResult().getVersionStatus().toString(),
getCore().getVersionResult().getError(),
Config.getAutoUpdaterSettings().toString(),
getCore().isSetup() ? getCore().getRestAPI().getPlan() : "§cNOT CONNECTED",
Arrays.toString(getPlugins().stream().filter(p -> !p.startsWith("cmd_") && !p.equals("reconnect_yaml")).toArray()),
Expand Down

0 comments on commit 2617335

Please sign in to comment.