Summary: I need a way for a player to "point" a specific object (currently, a chest) to a plug-in, telling it to work on that specific object.
What I tried:
1) A ray cast to get the object the player is looking at (the player would be required to look at the chest he want to work on); but ray cast result only identify players or NPCs;
2) Find the chest nearest to the player (the player would be required to move near to the intended chest): but neither World.getAllChests() nor the world DB "Chests" table itself contain the chest position.
Has anybody been able to solve this point?