aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-API-Patches/0005-Add-getTPS-method.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-API-Patches/0005-Add-getTPS-method.patch')
-rw-r--r--Spigot-API-Patches/0005-Add-getTPS-method.patch24
1 files changed, 12 insertions, 12 deletions
diff --git a/Spigot-API-Patches/0005-Add-getTPS-method.patch b/Spigot-API-Patches/0005-Add-getTPS-method.patch
index cd9252ec25..7f89cbd3ed 100644
--- a/Spigot-API-Patches/0005-Add-getTPS-method.patch
+++ b/Spigot-API-Patches/0005-Add-getTPS-method.patch
@@ -1,17 +1,18 @@
-From f41ba48d012b47e2ea11fae6e58e595e93ba47e1 Mon Sep 17 00:00:00 2001
+From 00ea1e8397cb66553e5fb8b7d5a29ecbaa1a6a36 Mon Sep 17 00:00:00 2001
From: Aikar <[email protected]>
Date: Mon, 29 Feb 2016 17:24:57 -0600
Subject: [PATCH] Add getTPS method
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
-index 85fd9a8..8d602a3 100644
+index 85fd9a83..8d602a3e 100644
--- a/src/main/java/org/bukkit/Bukkit.java
+++ b/src/main/java/org/bukkit/Bukkit.java
-@@ -1140,6 +1140,14 @@ public final class Bukkit {
+@@ -1139,6 +1139,14 @@ public final class Bukkit {
+ return server.createBossBar(title, color, style, flags);
}
- /**
++ /**
+ * Gets the current server TPS
+ * @return current server TPS (1m, 5m, 15m in Paper-Server)
+ */
@@ -19,28 +20,27 @@ index 85fd9a8..8d602a3 100644
+ return server.getTPS();
+ }
+
-+ /**
+ /**
* @see UnsafeValues
* @return the unsafe values instance
- */
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
-index f82cbaf..6e23b0c 100644
+index f82cbaf5..6e23b0ce 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
-@@ -934,6 +934,13 @@ public interface Server extends PluginMessageRecipient {
+@@ -933,6 +933,13 @@ public interface Server extends PluginMessageRecipient {
+ */
BossBar createBossBar(String title, BarColor color, BarStyle style, BarFlag ...flags);
- /**
++ /**
+ * 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
- */
--
-2.8.0
+2.34.0