mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 12:23:59 +00:00
Ignore ComputationExceptions while loading users async
This commit is contained in:
parent
b2394048fa
commit
5831cde90e
1 changed files with 7 additions and 0 deletions
|
@ -1,11 +1,14 @@
|
||||||
package com.earth2me.essentials;
|
package com.earth2me.essentials;
|
||||||
|
|
||||||
import com.google.common.base.Function;
|
import com.google.common.base.Function;
|
||||||
|
import com.google.common.collect.ComputationException;
|
||||||
import com.google.common.collect.MapMaker;
|
import com.google.common.collect.MapMaker;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentMap;
|
import java.util.concurrent.ConcurrentMap;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,6 +50,10 @@ public class UserMap implements Function<String, User>, IConf
|
||||||
{
|
{
|
||||||
// Ignore these
|
// Ignore these
|
||||||
}
|
}
|
||||||
|
catch (ComputationException ex)
|
||||||
|
{
|
||||||
|
Bukkit.getLogger().log(Level.INFO, "Failed to preload user "+name, ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue