This is my first time using IntelliJ, and any time I try to use bukkit#getonlineplayers (or anything else with bukkit) it just gives me errors in the IDE, I am using the spigot plugin development plugin for intellij, working on a plugin in 1.12.2, I wont be able to respond to the thread fast, because I have to leave in a few mins, but im going to look at it when I get back, if you know how to help, please point me in the right direction, Thanks
Seems like you didn't add the jar to the class path correctly. Check out this article on the wiki here: https://www.spigotmc.org/wiki/creating-a-blank-spigot-plugin-in-intellijidea/
Whats the Spigot Development plugin? I've never used that when using Intellij ? Also, I would recommend making it a Maven project, since you can better import APIs or Spigot versions via the pom. https://www.spigotmc.org/wiki/creating-a-plugin-with-maven-using-intellij-idea/ EDIT: Noticed you are using Maven, I normally notice it via the extra tab on the right, but you had it hidden. MB.
Seeing as you have it in your classpath properly, I'd venture to say the issue is Bukkit must be written as Bukkit not bukkit