Fix usermap debug message not being debug

This commit is contained in:
Josh Roy 2023-08-24 17:55:22 -04:00
parent bb2df0b0a4
commit cf43e643ed

View File

@ -139,7 +139,9 @@ public class ModernUserMap extends CacheLoader<UUID, User> implements IUserMap {
debugLogUncachedNonPlayer(base);
user = new User(base, ess);
} else if (!base.equals(user.getBase())) {
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());