I have a big question

Discussion in 'Plugin Development' started by Yupsoe, Jul 2, 2015.

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

    Yupsoe

    Hello everyone, i have a big question for you:


    How can I check if a user is protecting with a sword? The method p.isBlocking () does not work.
    I tried with the NMS (entityPlayer.K ()) but I do not find the metod
    How can I do?

    Thanks
     
  2. Offline

    _Error

    You want to discover when he started blocking or when he is blocking?
    And do you mind telling me what happens after he blocks? Cancel it? Send a msg?
     
  3. Offline

    Yupsoe

    @_Error I would like to see when the player is blocking and sending every tick one message at the player
     
  4. Offline

    MordorKing78

    @Yupsoe Err.. p.getBlocking works fine for that?
     
    CodePlaysMinecraft likes this.
  5. Offline

    Reynergodoy

    if (p.hasPermission"YourPermissionBlaBlaBla") {
    if (p.isBlocking) {
    p.setNoDamageTicks(10);
    }
    }
    or a thing like this :)
     
  6. Offline

    _Error

    Code:
    if(p.isBlocking()){
    p.sendMessage("Message");
    }
    If that works, Mark this thread as Solved.
     
Thread Status:
Not open for further replies.

Share This Page