I new in java and I need help pls...

Discussion in 'Plugin Development' started by oran10majar, Nov 6, 2013.

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

    oran10majar

    Hello, I want to make the folloing code: if(Player.getBlockY() < 30){

    I know the code does'nt work, but what is the relevant code?
     
  2. Offline

    RainoBoy97

    Code:
    if(player.getLocation().getBlockY() < 30) {
    
    Should do the trick ;)
     
  3. Offline

    1Rogue

    .getLocation().getY() iirc.
     
  4. Offline

    oran10majar

    Thx
     
  5. Offline

    Sagacious_Zed Bukkit Docs

    oran10majar It is important to understand the difference between Player and player in the given context
     
Thread Status:
Not open for further replies.

Share This Page