From ca6ed76e8fe7e3426c2818556e05144ef51e2fb7 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 10 Jul 2012 14:43:48 -0400 Subject: [PATCH] Log when someone's missing from a table. --- src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java index c15de2a16..5335e85f3 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java @@ -116,6 +116,7 @@ public class PlayerProfile { if (cooldowns.get(1) == null) { database.write("INSERT INTO " + tablePrefix + "cooldowns (user_id) VALUES (" + userId + ")"); + mcMMO.p.getLogger().warning(playerName + "does not exist in the cooldown table. Their cooldowns will be reset."); } else { skillsDATS.put(AbilityType.SUPER_BREAKER, Integer.valueOf(cooldowns.get(1).get(0))); @@ -132,6 +133,7 @@ public class PlayerProfile { if (stats.get(1) == null) { database.write("INSERT INTO " + tablePrefix + "skills (user_id) VALUES (" + userId + ")"); + mcMMO.p.getLogger().warning(playerName + "does not exist in the skills table. Their stats will be reset."); } else { skills.put(SkillType.TAMING, Integer.valueOf(stats.get(1).get(0))); @@ -152,6 +154,7 @@ public class PlayerProfile { if (experience.get(1) == null) { database.write("INSERT INTO " + tablePrefix + "experience (user_id) VALUES (" + userId + ")"); + mcMMO.p.getLogger().warning(playerName + "does not exist in the experience table. Their experience will be reset."); } else { skillsXp.put(SkillType.TAMING, Integer.valueOf(experience.get(1).get(0)));