2014-10-20 00:58:49 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2016-03-01 00:09:49 +01:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Mon, 29 Feb 2016 17:24:57 -0600
|
2014-10-20 00:58:49 +02:00
|
|
|
Subject: [PATCH] Add getTPS method
|
|
|
|
|
|
|
|
|
2016-03-01 00:09:49 +01:00
|
|
|
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
|
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
|
|
--- a/src/main/java/org/bukkit/Bukkit.java
|
|
|
|
+++ b/src/main/java/org/bukkit/Bukkit.java
|
|
|
|
@@ -0,0 +0,0 @@ public final class Bukkit {
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
+ * Gets the current server TPS
|
|
|
|
+ * @return current server TPS (1m, 5m, 15m in Paper-Server)
|
|
|
|
+ */
|
|
|
|
+ public static double[] getTPS() {
|
|
|
|
+ return server.getTPS();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
* @see UnsafeValues
|
|
|
|
* @return the unsafe values instance
|
|
|
|
*/
|
2014-10-20 00:58:49 +02:00
|
|
|
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
|
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
|
|
@@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient {
|
2016-03-01 00:09:49 +01:00
|
|
|
BossBar createBossBar(String title, BarColor color, BarStyle style, BarFlag ...flags);
|
2014-10-20 00:58:49 +02:00
|
|
|
|
2016-03-01 00:09:49 +01:00
|
|
|
/**
|
|
|
|
+ * Gets the current server TPS
|
|
|
|
+ *
|
|
|
|
+ * @return current server TPS (1m, 5m, 15m in Paper-Server)
|
|
|
|
+ */
|
|
|
|
+ public double[] getTPS();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
* @see UnsafeValues
|
|
|
|
* @return the unsafe values instance
|
|
|
|
*/
|
2015-08-02 08:56:08 +02:00
|
|
|
--
|