NCP + Velocity mod

Discussion in 'Plugin Development' started by s0undx, Feb 7, 2013.

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

    s0undx

    Hello!

    In one of my codes i set the player's velocity
    Code:
    p.setVelocity(new Vector(0, 1, 2));
    but NoCheatsPlus says that the player uses a fly hack.
    I'm looking for a lightweight solution for that.
    If you have any idea please tell it.
    Thanks in advance.
     
  2. Offline

    Rprrr

  3. Offline

    s0undx

    1. I need the plugin.
    2. I can't find any good examples, can you please show one?

    Rprrr
     
  4. Offline

    Rprrr

    s0undx
    Read the page. There's some pretty good links to pages you would want to take a look at.
     
  5. Offline

    s0undx

    Rprrr
    The links are to the github repos, without examples.
     
  6. Offline

    desht

    Have you actually looked at the NCPExemptionManager source (as linked to from the API page)? Looks pretty simple to me, something like NCPExemptionManager.exemptPermanently(player.getEntityId(), CheckType.MOVING_SURVIVALFLY) should do it. Of course, you'll need a sync delayed task to do the unexempt() bit.
     
  7. Offline

    s0undx

    desht
    Yeah, you are right.
    Thanks!
     
Thread Status:
Not open for further replies.

Share This Page