Solved getPing method is missing

Discussion in 'Spigot Plugin Development' started by Peepersoak, Jun 21, 2021.

  1. Hi, so I was trying to add the current ping of the player to the tab list then I saw this on the java doc, but when I try it, it's missing I think? here's what I get on eclipse, currently it's inside the player join event for testing, will move it inside a bukkit runnable once done testing.

    spigot version I'm using is 1.16.4, not sure if it helps

  2. Player#getPing() was added in the 1.17 release of spigot.
    • Winner Winner x 2
  3. ohh, that what I thought so, thank you, not really sure where to check when they added those methods that's why, thanks again
    • Friendly Friendly x 1
  4. You can create javadocs for older versions locally, since Spigot only hosts the javadocs of the latest version. The wiki has a guide to doing that here.
    • Informative Informative x 1