diff options
author | snowleo <schneeleo@gmail.com> | 2011-09-18 22:18:54 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-09-18 22:18:54 +0200 |
commit | 5831cde90ec2b5fe263c6bf28094849dd6f00fe5 (patch) | |
tree | 6131ec737f400f37788b5e12a30f716673e8f68d | |
parent | b2394048fa480a0db1e132ec046626f913d11cdc (diff) | |
download | Essentials-5831cde90ec2b5fe263c6bf28094849dd6f00fe5.tar Essentials-5831cde90ec2b5fe263c6bf28094849dd6f00fe5.tar.gz Essentials-5831cde90ec2b5fe263c6bf28094849dd6f00fe5.tar.lz Essentials-5831cde90ec2b5fe263c6bf28094849dd6f00fe5.tar.xz Essentials-5831cde90ec2b5fe263c6bf28094849dd6f00fe5.zip |
Ignore ComputationExceptions while loading users async
-rw-r--r-- | Essentials/src/com/earth2me/essentials/UserMap.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/UserMap.java b/Essentials/src/com/earth2me/essentials/UserMap.java index 271d7d0ab..69ddb5354 100644 --- a/Essentials/src/com/earth2me/essentials/UserMap.java +++ b/Essentials/src/com/earth2me/essentials/UserMap.java @@ -1,11 +1,14 @@ package com.earth2me.essentials; import com.google.common.base.Function; +import com.google.common.collect.ComputationException; import com.google.common.collect.MapMaker; import java.io.File; import java.util.HashSet; import java.util.Set; import java.util.concurrent.ConcurrentMap; +import java.util.logging.Level; +import org.bukkit.Bukkit; import org.bukkit.entity.Player; @@ -47,6 +50,10 @@ public class UserMap implements Function<String, User>, IConf { // Ignore these } + catch (ComputationException ex) + { + Bukkit.getLogger().log(Level.INFO, "Failed to preload user "+name, ex); + } } } }); |