mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-09 20:41:23 +01:00
Update Commandgc.java
This commit is contained in:
parent
1dfad57c6f
commit
c55e52539e
@ -20,13 +20,13 @@ public class Commandgc extends EssentialsCommand
|
|||||||
@Override
|
@Override
|
||||||
protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
|
protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
|
||||||
{
|
{
|
||||||
float tps = ess.getTimer().getAverageTPS();
|
double tps = ess.getTimer().getAverageTPS();
|
||||||
ChatColor color;
|
ChatColor color;
|
||||||
if (tps >= 18)
|
if (tps >= 18.0)
|
||||||
{
|
{
|
||||||
color = ChatColor.GREEN;
|
color = ChatColor.GREEN;
|
||||||
}
|
}
|
||||||
else if (tps >= 15)
|
else if (tps >= 15.0)
|
||||||
{
|
{
|
||||||
color = ChatColor.YELLOW;
|
color = ChatColor.YELLOW;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user