private static double[] getRecentTpsPaperSpigot() throws Throwable {
return Bukkit.getServer().spigot().getTPS();
}
private static double[] getRecentTpsRefl() throws Throwable {
if (minecraftServer == null) {
Server server = Bukkit.getServer();
Field consoleField = server.getClass().getDeclaredField("console");
consoleField.setAccessible(true);
minecraftServer = consoleField.get(server);
}
if (recentTps == null) {
recentTps = minecraftServer.getClass().getSuperclass().getDeclaredField("recentTps")...