Quick question for InventoryClickEvent

Discussion in 'Spigot Plugin Development' started by Cerus, Nov 2, 2018.

  1. Hello guys,
    the method getWhoClicked does not return a player. Why is that? I've never seen another entity besides the player clicking an inventory ;)
    Best regards
  2. Yes, I know, but why arent they using the Player object then?
  3. Thank you for the link, however it doesnt explain why they arent using a player for this event. ;)
  4. You can cast the player as an HumanEntity
  5. I know, I know, but wouldnt it be easier to return a Player object instead of a HumanEntity object?
    I know, but this wasnt my question.