From ad932ecdef037d13d58608a034c03d4dfacae0aa Mon Sep 17 00:00:00 2001 From: j502647092 Date: Wed, 7 Oct 2015 15:58:26 +0800 Subject: [PATCH] change load tip... Signed-off-by: j502647092 --- src/main/java/org/maxgamer/QuickShop/QuickShop.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/maxgamer/QuickShop/QuickShop.java b/src/main/java/org/maxgamer/QuickShop/QuickShop.java index 80cbc3f..eb6b37b 100644 --- a/src/main/java/org/maxgamer/QuickShop/QuickShop.java +++ b/src/main/java/org/maxgamer/QuickShop/QuickShop.java @@ -249,6 +249,7 @@ public class QuickShop extends JavaPlugin { } /* Load shops from database to memory */ int count = 0; // Shops count + int unload = 0; Connection con; try { getLogger().info("从数据库载入商店数据..."); @@ -292,7 +293,7 @@ public class QuickShop extends JavaPlugin { } count++; } catch (final IllegalStateException e) { - getLogger().warning("商店区块未载入 跳过商店载入..."); + unload++; } catch (final Exception e) { errors++; e.printStackTrace(); @@ -308,6 +309,7 @@ public class QuickShop extends JavaPlugin { } else { getLogger().warning("过多的错误数据 可能您的数据库文件已损坏! 请检查数据库文件!"); e.printStackTrace(); + break; } } } @@ -316,8 +318,7 @@ public class QuickShop extends JavaPlugin { getLogger().warning("错误信息: " + e.getMessage()); e.printStackTrace(); } - - getLogger().info("已载入 " + count + " 个商店..."); + getLogger().info("已载入 " + count + " 个商店 剩余 " + unload + " 个商店将在区块载入后加载..."); MsgUtil.loadTransactionMessages(); MsgUtil.clean(); // Register events