diff options
author | Luck <git@lucko.me> | 2019-08-09 20:35:26 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2019-08-09 20:35:26 +0100 |
commit | dc6968c4b56d9f04fa1b56808c298bdda77a442c (patch) | |
tree | 438189e04143ed578850cc5274fc0f6e995f8d60 /spark-common/src/main/java/me/lucko/spark/common/command | |
parent | 87c818a71b7102c9a8bcbf8d125a80da599ea965 (diff) | |
download | spark-dc6968c4b56d9f04fa1b56808c298bdda77a442c.tar.gz spark-dc6968c4b56d9f04fa1b56808c298bdda77a442c.tar.bz2 spark-dc6968c4b56d9f04fa1b56808c298bdda77a442c.zip |
Codestyle changes
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark/common/command')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/command/modules/HealthModule.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/command/modules/HealthModule.java b/spark-common/src/main/java/me/lucko/spark/common/command/modules/HealthModule.java index 86ab047..0737a00 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/command/modules/HealthModule.java +++ b/spark-common/src/main/java/me/lucko/spark/common/command/modules/HealthModule.java @@ -256,7 +256,7 @@ public class HealthModule implements CommandModule { ); } - private static TextComponent formatTps(double tps) { + public static TextComponent formatTps(double tps) { TextColor color; if (tps > 18.0) { color = TextColor.GREEN; @@ -269,7 +269,7 @@ public class HealthModule implements CommandModule { return TextComponent.of( (tps > 20.0 ? "*" : "") + Math.min(Math.round(tps * 100.0) / 100.0, 20.0), color); } - private static TextComponent formatCpuUsage(double usage) { + public static TextComponent formatCpuUsage(double usage) { TextColor color; if (usage > 0.9) { color = TextColor.RED; |