intelij can not access PacketPlayOutPlayerInfoData

Discussion in 'Spigot Plugin Development' started by Jonnyo101, Aug 10, 2019.

  1. hello i seem to be getting this error when trying to compile my plugin.[​IMG]
    The highlighted line is there line of the error there is no error in the editor its self.
    Does anyone know what i am getting this error ?
     
  2. What are you dependencies?

    Are you using maven?
     
  3. Not using maven and no dependencies
     
  4. Well if you do not have any dependencies:

    Add spigot to it lol
     
  5. O sorry I thought you ment plugins lol yer obv spigot is added. If I remove the array list
    dataList the plugin will compile fine.
    As you can see there is no errors in the editor just when trying to build the jar
     
  6. I never get that error, but after a while, I found there was someone had the same issue with you:
    https://hub.spigotmc.org/jira/browse/SPIGOT-2371
    Looked into NMS, maybe the annotation Nullable in the fourth parameter caused that. Mmm, so let's try to remove it.
     
  7. So is this something that is fixable ?
     
  8. electronicboy

    IRC Staff

    Basically, the class is broken; easiest fix is to just use reflection instead of trying to access that stuff directly with java
     
  9. I am not that familiar with reflection could you point me in the right direction on how I would do that