Need help, when a player is standing on a specific block

Discussion in 'Plugin Development' started by kember007, Jan 22, 2015.

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

    kember007

    I need help with a small bit of a plugin im working on, im trying to find the block name of the block the player is standing on. here is what I have
    Code:
    if(e.getTo.getBlock.getReletive(BlockFace.DOWN).getType() == Material.EMERALD_BLOCK)
    {
    blah
    }
    
    You see, it says that getTo is incorrect for some reason and that is the problem I am having, if there is another way to tackle this please led me know :)

    Nevermind, the issue is getTo should be getTo() :) sorry for causing the trouble haha

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  2. Offline

    mine-care

    @kember007 please mark thread as solved, and no trouble, I bet others have this question too
     
Thread Status:
Not open for further replies.

Share This Page