diff options
author | snowleo <schneeleo@gmail.com> | 2013-04-23 08:57:22 +0300 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2013-04-23 08:57:22 +0300 |
commit | 56beab083c275e2784e93efdfb979fb0b9cec8b6 (patch) | |
tree | 3feee9fa94bc93a97c466bc21c9e8676a540aa1b | |
parent | 97238b82ed24f75078a2c649d4fad9043f8fdd89 (diff) | |
download | Essentials-56beab083c275e2784e93efdfb979fb0b9cec8b6.tar Essentials-56beab083c275e2784e93efdfb979fb0b9cec8b6.tar.gz Essentials-56beab083c275e2784e93efdfb979fb0b9cec8b6.tar.lz Essentials-56beab083c275e2784e93efdfb979fb0b9cec8b6.tar.xz Essentials-56beab083c275e2784e93efdfb979fb0b9cec8b6.zip |
Update Commandgc.java
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandgc.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgc.java b/Essentials/src/com/earth2me/essentials/commands/Commandgc.java index b1988b04e..71851f883 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandgc.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandgc.java @@ -20,13 +20,13 @@ public class Commandgc extends EssentialsCommand @Override 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; - if (tps >= 18) + if (tps >= 18.0) { color = ChatColor.GREEN; } - else if (tps >= 15) + else if (tps >= 15.0) { color = ChatColor.YELLOW; } |