From cf43e643edd4bd15c3e042d2961c637e2c777fd8 Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Thu, 24 Aug 2023 17:55:22 -0400 Subject: [PATCH] Fix usermap debug message not being debug --- .../com/earth2me/essentials/userstorage/ModernUserMap.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/userstorage/ModernUserMap.java b/Essentials/src/main/java/com/earth2me/essentials/userstorage/ModernUserMap.java index 150c85fa7..b827bef0e 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/userstorage/ModernUserMap.java +++ b/Essentials/src/main/java/com/earth2me/essentials/userstorage/ModernUserMap.java @@ -139,7 +139,9 @@ public class ModernUserMap extends CacheLoader implements IUserMap { debugLogUncachedNonPlayer(base); user = new User(base, ess); } else if (!base.equals(user.getBase())) { - ess.getLogger().log(Level.INFO, "Essentials updated the underlying Player object for " + user.getUUID()); + if (ess.getSettings().isDebug()) { + ess.getLogger().log(Level.INFO, "Essentials updated the underlying Player object for " + user.getUUID()); + } user.update(base); } uuidCache.updateCache(user.getUUID(), user.getName());