Solved h_() replacement on EntityPlayer?

Discussion in 'Plugin Development' started by CommonSenze, Mar 31, 2018.

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

    CommonSenze

    Hello all,

    I've come into another dilemma. In 1.7 there was a method called h_() [Found in EntityPlayer], and from my understanding. it was a check to see if a player was on a ladder (I'm not really sure I'm assuming based on how others used it.). My question goes as follows:
    Since h_() isnt there for 1.8, where is its replacement. If there is non, is there an accurate way I can replace it?
     
  2. Offline

    Zombie_Striker

    @CommonSenze
    You could try using the API and check if the players is "inside" a ladder (checking for both the feet and chest).
     
  3. Offline

    CommonSenze

  4. Offline

    Zombie_Striker

    @CommonSenze
    If(Player#getLocation().getBlock().getType == Material.LADDER ||
    Player#getLocation().add(0,1,0).getBlock().getType == Material.LADDER){
    //player may be using the ladder.
    }
     
  5. Offline

    CommonSenze

Thread Status:
Not open for further replies.

Share This Page