From acfa885a0d88a28de35ceeccadb563b568caf783 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sun, 28 Oct 2018 10:20:16 +0200 Subject: [PATCH] [Fix] Fix ping method usage on Paper --- .../plan/system/tasks/server/bukkit/PingCountTimerBukkit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/system/tasks/server/bukkit/PingCountTimerBukkit.java b/Plan/src/main/java/com/djrapitops/plan/system/tasks/server/bukkit/PingCountTimerBukkit.java index 345f06719..ed113c0d2 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/tasks/server/bukkit/PingCountTimerBukkit.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/tasks/server/bukkit/PingCountTimerBukkit.java @@ -122,7 +122,7 @@ public class PingCountTimerBukkit extends AbsRunnable implements Listener { private static boolean isPingMethodAvailable() { try { //Only available in Paper - Class.forName("org.bukkit.entity.Player.Spigot").getDeclaredMethod("getPing"); + Class.forName("org.bukkit.entity.Player$Spigot").getDeclaredMethod("getPing"); return true; } catch (ClassNotFoundException | NoSuchMethodException noSuchMethodEx) { return false;