Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Remixful, May 30, 2017.
How can I get the window ID of an inventory view? I need it for sending packets.
Nevermind, this works great.
EntityPlayer ep= ((CraftPlayer)ply).getHandle();
//You can then use ep.activeContainer.windowId
to get the window id of the player's open inventory