Hit Delay

Discussion in 'Plugin Development' started by KoalaOnCaffeine, May 31, 2018.

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

    KoalaOnCaffeine

    Hi! I'm wondering how I can make it so a player has an attack cooldown, much like 1.9 pvp. I have tried using a setNoDamageTicks(20); but it doesnt seem to work for me. Thanks!
     
  2. Offline

    Zombie_Striker

    @KoalaOnCaffeine
    If you're on one of the newer updates (which you should be. If you are not, click the link in my signature) the 1.9 PVP should be enabled by default.

    And DamageTicks is applied for all damage done to the player. If you need it so a player cannot damage another player within a certain amount of time, you would need to build your own cooldown system.
     
  3. Offline

    KoalaOnCaffeine

    When you say 'newer updates' are you referring to my version of craftbukkit, or my server version? I have a 1.8 server and i want it to be like 1.9. This might sound weird but i wanted to make an annoying minecraft plugin for 1.8
     
Thread Status:
Not open for further replies.

Share This Page