NMS Issue

Discussion in 'Spigot Plugin Development' started by ToonBasic, Jun 8, 2017.

  1. Basically I need to get PacketPlayOutPlayerInfo.PlayerInfoData working for some NPCs, but whenever I try to use it, I keep getting 'Cannot resolve symbol: PlayerInfoData" no matter what I try. I did a bit of googling as well, but I can't seem to find a resolution either.

    Here's a snippet of how I am trying to handle it:
    Code (Text):
            PacketPlayOutPlayerInfo packet = new PacketPlayOutPlayerInfo();
            PacketPlayOutPlayerInfo.PlayerInfoData data = packet.new PlayerInfoData(...)
  2. Im on my phone, so I can't check.. but what's the visibility of the subclass? It may be private or protected, in which case you'll need to invoke it's constructor with some reflection magic.
  3. I had a similar problem. I had to change the Java Compiler to Eclipse in Intellij Idea, now it works fine. What editor do you use?
  4. IntelliJ

    I'll try that, thanks. I am still somewhat new to NMS, so I wasn't aware what was going on.