Skip to content

Commit

Permalink
Merge branch '2.x' into fix/ignore-yourself
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy authored Aug 24, 2023
2 parents 0a8d4a3 + 42071f4 commit 786b088
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public ModernUserMap(final IEssentials ess) {
// -Dnet.essentialsx.usermap.print-stack=true
final String printStackProperty = System.getProperty("net.essentialsx.usermap.print-stack", "false");
// -Dnet.essentialsx.usermap.max-warns=20
final String maxWarnProperty = System.getProperty("net.essentialsx.usermap.max-warns", "100");
final String maxWarnProperty = System.getProperty("net.essentialsx.usermap.max-warns", "10");
// -Dnet.essentialsx.usermap.log-cache=true
final String logCacheProperty = System.getProperty("net.essentialsx.usermap.log-cache", "false");

Expand Down Expand Up @@ -139,7 +139,9 @@ public User loadUncachedUser(final Player base) {
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());
Expand Down

0 comments on commit 786b088

Please sign in to comment.