mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Log when someone's missing from a table.
This commit is contained in:
parent
3d04da39e3
commit
ca6ed76e8f
@ -116,6 +116,7 @@ public class PlayerProfile {
|
|||||||
|
|
||||||
if (cooldowns.get(1) == null) {
|
if (cooldowns.get(1) == null) {
|
||||||
database.write("INSERT INTO " + tablePrefix + "cooldowns (user_id) VALUES (" + userId + ")");
|
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 {
|
else {
|
||||||
skillsDATS.put(AbilityType.SUPER_BREAKER, Integer.valueOf(cooldowns.get(1).get(0)));
|
skillsDATS.put(AbilityType.SUPER_BREAKER, Integer.valueOf(cooldowns.get(1).get(0)));
|
||||||
@ -132,6 +133,7 @@ public class PlayerProfile {
|
|||||||
|
|
||||||
if (stats.get(1) == null) {
|
if (stats.get(1) == null) {
|
||||||
database.write("INSERT INTO " + tablePrefix + "skills (user_id) VALUES (" + userId + ")");
|
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 {
|
else {
|
||||||
skills.put(SkillType.TAMING, Integer.valueOf(stats.get(1).get(0)));
|
skills.put(SkillType.TAMING, Integer.valueOf(stats.get(1).get(0)));
|
||||||
@ -152,6 +154,7 @@ public class PlayerProfile {
|
|||||||
|
|
||||||
if (experience.get(1) == null) {
|
if (experience.get(1) == null) {
|
||||||
database.write("INSERT INTO " + tablePrefix + "experience (user_id) VALUES (" + userId + ")");
|
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 {
|
else {
|
||||||
skillsXp.put(SkillType.TAMING, Integer.valueOf(experience.get(1).get(0)));
|
skillsXp.put(SkillType.TAMING, Integer.valueOf(experience.get(1).get(0)));
|
||||||
|
Loading…
Reference in New Issue
Block a user