mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-04-12 18:20:26 +08:00
Some typo fixes
Adds the pie chart "Server Type", needs support from Rsl
This commit is contained in:
parent
176d28a535
commit
7486030b58
@ -45,7 +45,7 @@ public enum Phrase {
|
||||
CACHE_GETTASK_DISABLED("Attempted to schedule data grab after task was shut down."),
|
||||
CACHE_CLEARTASK_DISABLED("Attempted to schedule data for clear after task was shut down."),
|
||||
//
|
||||
VERSION_NEW_AVAILABLE("New Version (" + REPLACE0 + ") is availible at https://www.spigotmc.org/resources/plan-player-analytics.32536/"),
|
||||
VERSION_NEW_AVAILABLE("New Version (" + REPLACE0 + ") is available at https://www.spigotmc.org/resources/plan-player-analytics.32536/"),
|
||||
VERSION_LATEST("You're running the latest version"),
|
||||
VERSION_CHECK_ERROR("Failed to compare versions."),
|
||||
VERSION_FAIL("Failed to get newest version number."),
|
||||
@ -83,7 +83,7 @@ public enum Phrase {
|
||||
ERROR_CONSOLE_PLAYER("This point of code should not be accessable on console. Inform author: " + REPLACE0 + " Console: REPLACE1"),
|
||||
ERROR_NO_DATA_VIEW(ChatColor.YELLOW + "Webserver disabled but Alternative IP/PlanLite not used, no way to view data!"),
|
||||
ERROR_WEBSERVER_OFF_ANALYSIS(ChatColor.YELLOW + "" + PREFIX + "This command can be only used if the webserver is running on this server."),
|
||||
ERROR_WEBSERVER_OFF_INSPECT(ChatColor.YELLOW + "" + PREFIX + "This command can be only used if webserver/planlite is enabled on this server."),
|
||||
ERROR_WEBSERVER_OFF_INSPECT(ChatColor.YELLOW + "" + PREFIX + "This command can be only used if webserver is enabled on this server."),
|
||||
ERROR_LOGGED("Caught " + REPLACE0 + ". It has been logged to the Errors.txt"),
|
||||
ERROR_SESSIONDATA_INITIALIZATION("Player's session was initialized in a wrong way! (" + REPLACE0 + ")"),
|
||||
ERROR_ANALYSIS_FETCH_FAIL("Failed to fetch data for Analysis, Exception occurred."),
|
||||
|
@ -30,6 +30,7 @@ public class BStats {
|
||||
boolean gatherGMTimes = Settings.GATHERGMTIMES.isTrue();
|
||||
boolean gatherCommands = Settings.GATHERCOMMANDS.isTrue();
|
||||
|
||||
|
||||
addEnabledDisabledPie("webserver_enabled", webserver);
|
||||
addEnabledDisabledPie("analysis_enable_refresh", analysisRefreshEnable);
|
||||
addEnabledDisabledPie("analysis_auto_refresh", analysisAutoRefresh);
|
||||
@ -39,20 +40,10 @@ public class BStats {
|
||||
addEnabledDisabledPie("gather_gmtimes", gatherGMTimes);
|
||||
addEnabledDisabledPie("gather_commands", gatherCommands);
|
||||
|
||||
String databaseType = Settings.DB_TYPE.toString().toLowerCase();
|
||||
|
||||
switch (databaseType) {
|
||||
case "mysql":
|
||||
databaseType = "MySQL";
|
||||
break;
|
||||
case "sqlite":
|
||||
databaseType = "SQLite";
|
||||
break;
|
||||
default:
|
||||
databaseType = "No Database";
|
||||
break;
|
||||
}
|
||||
String serverType = plugin.getDB().getName();
|
||||
String databaseType = plugin.getDB().getName();
|
||||
|
||||
addStringSettingPie("server_type", serverType);
|
||||
addStringSettingPie("database_type", databaseType);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user