mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-12-22 12:48:47 +00:00
style: 修改显示颜色
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
c7fc35ab7e
commit
6a75d33e85
@ -294,11 +294,11 @@ public class MonitorCommand implements CommandExecutor {
|
||||
private String getPer(final double per) {
|
||||
final double p = per / 5;
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
if (p < 4) {
|
||||
if (p < 3) {
|
||||
sb.append("§a");
|
||||
} else if (p < 7) {
|
||||
} else if (p < 6) {
|
||||
sb.append("§d");
|
||||
} else if (p < 10) {
|
||||
} else if (p < 9) {
|
||||
sb.append("§c");
|
||||
} else {
|
||||
sb.append("§4");
|
||||
|
Loading…
Reference in New Issue
Block a user