Getting a window ID

Discussion in 'Spigot Plugin Development' started by Remixful, May 30, 2017.

  1. How can I get the window ID of an inventory view? I need it for sending packets.
  2. Nevermind, this works great.
    Code (Text):
    EntityPlayer ep= ((CraftPlayer)ply).getHandle();
    //You can then use ep.activeContainer.windowId
    to get the window id of the player's open inventory
    • Like Like x 3