From a3aab57cf802b5f64efcf60e8f64336971e8f55d Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 25 Apr 2013 20:08:27 -0400 Subject: [PATCH] I am bad at SQL. --- .../com/gmail/nossr50/datatypes/player/PlayerProfile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java index 4c9ab2245..55c2caa9c 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java @@ -488,8 +488,8 @@ public class PlayerProfile { SQLDatabaseManager.write("UPDATE " + tablePrefix + "users SET lastlogin = " + ((int) (System.currentTimeMillis() / Misc.TIME_CONVERSION_FACTOR)) + " WHERE id = " + userId); SQLDatabaseManager.write("UPDATE " + tablePrefix + "huds SET " - + " hudtype = " + (hudType == null ? "STANDARD" : hudType.toString()) - + ", mobhealthbar = " + (mobHealthbarType == null ? Config.getInstance().getMobHealthbarDefault().toString() : mobHealthbarType.toString()) + + " hudtype = '" + (hudType == null ? "STANDARD" : hudType.toString() + "'") + + ", mobhealthbar = '" + (mobHealthbarType == null ? Config.getInstance().getMobHealthbarDefault().toString() : mobHealthbarType.toString() + "'") + " WHERE user_id = " + userId); SQLDatabaseManager.write("UPDATE " + tablePrefix + "cooldowns SET " + " mining = " + skillsDATS.get(AbilityType.SUPER_BREAKER)