We need to catch some rares exceptions !

This commit is contained in:
Xephi
2015-04-22 23:36:20 +02:00
parent ea85ec25b9
commit a5e6a8fa12
4 changed files with 18 additions and 6 deletions
+8 -3
View File
@@ -48,9 +48,14 @@ public class LimboCache {
inv = null;
arm = null;
}
playerGroup = playerData.readCache(player).getGroup();
operator = playerData.readCache(player).getOperator();
flying = playerData.readCache(player).isFlying();
try {
playerGroup = playerData.readCache(player).getGroup();
operator = playerData.readCache(player).getOperator();
flying = playerData.readCache(player).isFlying();
} catch (Exception e)
{
ConsoleLogger.showError("Some error on reading cache of " + name);
}
} else {
StoreInventoryEvent event = new StoreInventoryEvent(player);
Bukkit.getServer().getPluginManager().callEvent(event);