Hey was wondering if anyone could help me out, im trying to make it so when a player right clicks on a map it gets the cords of that map and tp's them there heres what I have so far. I have the PlayerInteractEvent setup and it checks if item held is a map but the problem is how do I get the cords of the map the player is holding?
Have a look at the docs. You should be able to turn the ItemStack into a MapView* through casting or whatnot and view the coords from there. *not tested