Sprinting with Blindness Effect

Discussion in 'Plugin Development' started by BrennyMullan, Nov 23, 2015.

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

    BrennyMullan

    I am creating a plugin where i want the players to have the blindness potion effect and still be able to sprint.

    The blindness effect currently disables the ability to sprint and i am wondering if anyone knows of a way where i can bypass that.

    I have tried the PlayerToggleSprintEvent and giving it the highest priority and setting the setCanceled to false but did not work.

    If anyone knows of a way i can do this or to achieve the same effect as sprinting i would appreciate it.
     
  2. Offline

    Scimiguy

    Try listening to the togglesprint event and setting the velocity to higher, or giving them a speed potion effect while "sprinting"
     
  3. Offline

    BrennyMullan

    The problem is the event is not called while blind, i tested it with a simple player message which is called without the effect but not with it.
     
  4. Offline

    Scimiguy

    Ah ok.

    Well I'm not sure what you can do then tbh
     
Thread Status:
Not open for further replies.

Share This Page