summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-08-25 16:57:36 +0100
committerKHobbits <rob@khobbits.co.uk>2012-08-25 16:57:36 +0100
commit089fa8c19b6305c62fecc2767c63e298f048c247 (patch)
tree3aa9a964b84dc2e221df16950469d7f584074e3b
parent7c687831bcfa95b11c9ca90c0691b14f0e1b1e80 (diff)
downloadEssentials-089fa8c19b6305c62fecc2767c63e298f048c247.tar
Essentials-089fa8c19b6305c62fecc2767c63e298f048c247.tar.gz
Essentials-089fa8c19b6305c62fecc2767c63e298f048c247.tar.lz
Essentials-089fa8c19b6305c62fecc2767c63e298f048c247.tar.xz
Essentials-089fa8c19b6305c62fecc2767c63e298f048c247.zip
Add AntiBuild to Metrics.
-rw-r--r--Essentials/src/com/earth2me/essentials/User.java2
-rw-r--r--Essentials/src/com/earth2me/essentials/metrics/MetricsStarter.java1
2 files changed, 2 insertions, 1 deletions
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<User>, 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,