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:
parent
96f266d430
commit
2f27799820
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user