mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Fixed value highlighting for XRay stats
This commit is contained in:
1 parent
2d9173e288
commit
46ec0d736d
1 file changed
+6
-6
@@ -70,38 +70,38 @@ public class XRayTracker {
|
|||||||
}
|
}
|
||||||
cs.sendMessage("--------------------["+green+"X-Ray Stats"+white+"]---------------------");
|
cs.sendMessage("--------------------["+green+"X-Ray Stats"+white+"]---------------------");
|
||||||
ChatColor color = ChatColor.WHITE;
|
ChatColor color = ChatColor.WHITE;
|
||||||
if(d >= b/3 && b > 50)
|
if(d >= b/3 && t > 50)
|
||||||
{
|
{
|
||||||
color = ChatColor.RED;
|
color = ChatColor.RED;
|
||||||
}
|
}
|
||||||
cs.sendMessage(gray+"Total blocks broken: "+white+t);
|
cs.sendMessage(gray+"Total blocks broken: "+white+t);
|
||||||
cs.sendMessage(gray+"Percent diamond ore: "+color+round(d,1)+"%");
|
cs.sendMessage(gray+"Percent diamond ore: "+color+round(d,1)+"%");
|
||||||
color = ChatColor.WHITE;
|
color = ChatColor.WHITE;
|
||||||
if(g >= b/3 && b > 50)
|
if(g >= b/3 && t > 50)
|
||||||
{
|
{
|
||||||
color = ChatColor.RED;
|
color = ChatColor.RED;
|
||||||
}
|
}
|
||||||
cs.sendMessage(gray+"Percent gold ore: "+color+round(g,1)+"%");
|
cs.sendMessage(gray+"Percent gold ore: "+color+round(g,1)+"%");
|
||||||
color = ChatColor.WHITE;
|
color = ChatColor.WHITE;
|
||||||
if(i >= b/3 && b > 50)
|
if(i >= b/3 && t > 50)
|
||||||
{
|
{
|
||||||
color = ChatColor.RED;
|
color = ChatColor.RED;
|
||||||
}
|
}
|
||||||
cs.sendMessage(gray+"Percent iron ore: "+color+round(i,1)+"%");
|
cs.sendMessage(gray+"Percent iron ore: "+color+round(i,1)+"%");
|
||||||
color = ChatColor.WHITE;
|
color = ChatColor.WHITE;
|
||||||
if(c >= b/3 && b > 50)
|
if(c >= b/3 && t > 50)
|
||||||
{
|
{
|
||||||
color = ChatColor.RED;
|
color = ChatColor.RED;
|
||||||
}
|
}
|
||||||
cs.sendMessage(gray+"Percent coal ore: "+color+round(c,1)+"%");
|
cs.sendMessage(gray+"Percent coal ore: "+color+round(c,1)+"%");
|
||||||
color = ChatColor.WHITE;
|
color = ChatColor.WHITE;
|
||||||
if(la >= b/3 && b > 50)
|
if(la >= b/3 && t > 50)
|
||||||
{
|
{
|
||||||
color = ChatColor.RED;
|
color = ChatColor.RED;
|
||||||
}
|
}
|
||||||
cs.sendMessage(gray+"Percent lapis ore: "+color+round(la,1)+"%");
|
cs.sendMessage(gray+"Percent lapis ore: "+color+round(la,1)+"%");
|
||||||
color = ChatColor.WHITE;
|
color = ChatColor.WHITE;
|
||||||
if(r >= b/3 && b > 50)
|
if(r >= b/3 && t > 50)
|
||||||
{
|
{
|
||||||
color = ChatColor.RED;
|
color = ChatColor.RED;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user