We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08826c7 commit 4ec200aCopy full SHA for 4ec200a
1 file changed
src/main/java/com/extendedclip/papi/expansion/server/ServerUtils.java
@@ -106,9 +106,9 @@ public double[] getTps() {
106
private void resolveTPSHandler() {
107
try {
108
// If this throws is the server not a fork...
109
- Class.forName("org.bukkit.Bukkit").getMethod("getTPS");
+ Bukkit.class.getMethod("getTPS");
110
hasTpsMethod = true;
111
- } catch (ClassNotFoundException | NoSuchMethodException ignored) {
+ } catch (NoSuchMethodException ignored) {
112
final String mcVersion = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
113
114
0 commit comments