This commit is contained in:
parent
6975f720a3
commit
c0176b70d1
3 changed files with 8 additions and 8 deletions
|
@ -363,13 +363,13 @@ public abstract class Feature extends ToggleButton implements SetCommand {
|
|||
moduleMetaColor = Features.getFeature(HUD.class).moduleMetaColor;
|
||||
switch (moduleMetaColor) {
|
||||
case Future:
|
||||
return text + (meta != null ? ChatFormatting.GRAY + " [" + ChatFormatting.WHITE + meta + ChatFormatting.GRAY + "]" : "");
|
||||
return text + (meta != null ? ChatFormatting.GRAY + " [" + ChatFormatting.WHITE + meta.replace("§r", ChatFormatting.WHITE.toString()) + ChatFormatting.GRAY + "]" : "");
|
||||
case Colored:
|
||||
return text + (meta != null ? " [" + meta + "]" : "");
|
||||
case Bracketless:
|
||||
return text + (meta != null ? ChatFormatting.GRAY + " " + meta : "");
|
||||
return text + (meta != null ? ChatFormatting.GRAY + " " + meta.replace("§r", "§7") : "");
|
||||
default: //Normal
|
||||
return text + (meta != null ? ChatFormatting.GRAY + " [" + meta + "]" : "");
|
||||
return text + (meta != null ? ChatFormatting.GRAY + " [" + meta.replace("§r", "§7") + "§7]" : "");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -29,9 +29,9 @@ public class PacketCounter extends Feature {
|
|||
|
||||
@Override
|
||||
public void onEveryTick() {
|
||||
meta = abbreviate(totUp) + "↑/↓" + abbreviate(totDown) + "] [" +
|
||||
(up.isEmpty() ? "-" : "§c" + up.size()) + "↑§7/" +
|
||||
(down.isEmpty() ? "↓-" : "§c↓" + down.size()) + "§7";
|
||||
meta = abbreviate(totUp) + "↑/↓" + abbreviate(totDown) + " | " +
|
||||
(up.isEmpty() ? "-" : "§c" + up.size()) + "↑§r/" +
|
||||
(down.isEmpty() ? "↓-" : "§c↓" + down.size());
|
||||
}
|
||||
|
||||
private String abbreviate(long n) {
|
||||
|
|
|
@ -48,8 +48,8 @@ public class Ping extends Feature {
|
|||
@Override
|
||||
public void onEveryTick() {
|
||||
meta = milliseconds + "ms: " +
|
||||
(holderSend.isEmpty() ? "-" : "§c" + holderSend.size()) + "↑§7/" +
|
||||
(holderRecv.isEmpty() ? "↓-" : "§c↓" + holderRecv.size()) + "§7";
|
||||
(holderSend.isEmpty() ? "-" : "§c" + holderSend.size()) + "↑§r/" +
|
||||
(holderRecv.isEmpty() ? "↓-" : "§c↓" + holderRecv.size());
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
|
Loading…
Add table
Reference in a new issue