feat: 去除异常打印

Signed-off-by: 502647092 <admin@yumc.pw>
merge/1/MERGE
502647092 2016-07-28 15:11:09 +08:00
parent 96f266d430
commit 2f27799820
1 changed files with 1 additions and 2 deletions

View File

@ -64,7 +64,6 @@ public class C {
// getOfflinePlayer end
} catch (NoSuchMethodException | SecurityException | ClassNotFoundException e) {
Log.warning(Player.class.getSimpleName() + "兼容性工具初始化失败 可能造成部分功能不可用!");
e.printStackTrace();
}
}
@ -80,7 +79,7 @@ public class C {
final Object gameProfile = gameProfileConstructor.newInstance(new Object[] { UUID.nameUUIDFromBytes(("OfflinePlayer:" + playerName).getBytes(Charsets.UTF_8)), playerName });
final Object offlinePlayer = craftOfflinePlayerConstructor.newInstance(new Object[] { Bukkit.getServer(), gameProfile });
return (OfflinePlayer) offlinePlayer;
} catch (final Throwable var5) {
} catch (final Throwable e) {
return Bukkit.getOfflinePlayer(playerName);
}
}