Map Help

Discussion in 'Plugin Development' started by Onlineids, Mar 18, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Onlineids

    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?
     
  2. Offline

    Barnyard_Owl

    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
     
Thread Status:
Not open for further replies.

Share This Page