Error in my code

Discussion in 'Spigot Plugin Development' started by CreepersGamingMc, Jun 3, 2017.

  1. Hello, my plugin has an error, here is the pastebin link:
    https://pastebin.com/57p7KyVc
    Keep in mind i'm a new developer and i'm confused on how to fix this, but still have everything working such as %newline%
     
  2. Umm, what's the error?
     
  3. The plugin isn't working, it says this:
    2017-06-03_12-19-56.jpg
    It says ServerPingEvent could not be resolved to a type
     
  4. Use ServerListPingEvent not ServerPingEvent
     
  5. Okay, i'll see if it works!
     
  6. In the future, you should solve your own problem by looking through the javadocs and trying to find the right class.
    For instance, by typing Ctrl + F, and typing in "Ping" I found the class you were looking for within 3 seconds. ;)