[Fix] Fix ping method usage on Paper

This commit is contained in:
Rsl1122 2018-10-28 10:20:16 +02:00
parent 916a0d3aed
commit acfa885a0d

View File

@ -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;