1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-24 02:08:48 +00:00

feat: 去除异常打印

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-07-28 15:11:09 +08:00
parent 96f266d430
commit 2f27799820

View File

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