I want to use the onBlockActivated() method yet IntelliJ does not see it. I tried gradlew clean and gradlew --refresh-dependencies as well as re-installing IntelliJ. Nothing helped.
Thank You, although that didn't help, after trial and error the server finally launched, I think while the Java version I installed was correct, the installation has gone wrong and it didn't work. After continuous re-installs, it finally worked. Thank You a whole lot for Your help.
Tried that too... Didn't help, checked with "java -version"(was set to 8), one of the .bat files also had a check for Java 8, and it did not pick up that java version.