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 | c55e52539eef7345de76c5e33fb9958c6f9d1fd9 (patch) | |
tree | e2952291966f5938948d6eb7d9a99869ceb0d6f5 | |
parent | 1dfad57c6fe71472b4b3e4aabe7569c4b9330253 (diff) | |
download | Essentials-c55e52539eef7345de76c5e33fb9958c6f9d1fd9.tar Essentials-c55e52539eef7345de76c5e33fb9958c6f9d1fd9.tar.gz Essentials-c55e52539eef7345de76c5e33fb9958c6f9d1fd9.tar.lz Essentials-c55e52539eef7345de76c5e33fb9958c6f9d1fd9.tar.xz Essentials-c55e52539eef7345de76c5e33fb9958c6f9d1fd9.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; } |