From b9bca0ed8fed5d9125a9592d2e7b16e5d04c0223 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sat, 25 Aug 2012 16:57:36 +0100 Subject: Add AntiBuild to Metrics. --- Essentials/src/com/earth2me/essentials/User.java | 2 +- Essentials/src/com/earth2me/essentials/metrics/MetricsStarter.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java index b5f3ef04a..b9868148c 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -176,7 +176,7 @@ public class User extends UserData implements Comparable, IReplyTo, IUser public boolean canAfford(final double cost, final boolean permcheck) { - if (cost <= 0) { return true; } + if (cost <= 0.0) { return true; } final double mon = getMoney(); if (!permcheck || isAuthorized("essentials.eco.loan")) { diff --git a/Essentials/src/com/earth2me/essentials/metrics/MetricsStarter.java b/Essentials/src/com/earth2me/essentials/metrics/MetricsStarter.java index 0ea692cc9..9638d8d5e 100644 --- a/Essentials/src/com/earth2me/essentials/metrics/MetricsStarter.java +++ b/Essentials/src/com/earth2me/essentials/metrics/MetricsStarter.java @@ -18,6 +18,7 @@ public class MetricsStarter implements Runnable private enum Modules { Essentials, + EssentialsAntiBuild, EssentialsAntiCheat, EssentialsChat, EssentialsSpawn, -- cgit v1.2.3