[MECH] DamageCooldown v0.1.2 - Damage cooldown when using a sword [1.0.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by Rahazan, Dec 8, 2011.

  1. Offline


    Damage cooldown when using a sword!
    <Edit by Moderator: Redacted bit url>

    This plugin will put a cooldown in place for damage by swords, which is configurable. It was made in an attempt to make swordfights more dependant on tactics, instead of spamming your left mouse button.

    The configuration is set to 3 seconds.

    First hit: full damage
    Second hit, after 1 second: 1/3rd of the full damage.
    Third hit, 2 seconds after the second hit: 2/3 of the full damage.

    Please do leave a comment if you enjoy using this plugin :).

    Configuration (config.yml):
    Cooldown: 3.0
    # Determines the time over which the damage "regenerates".

    Debugmode: false
    # With this set to true, it will tell the player how much damage was dealt when using a sword.

    PVPonly: false
    # With this set to true, the damage cooldown will only be functional when attacking a player using a sword.

    * None.


    * Lightweight.
    * Configurable cooldown.
    * Debugmode to show how (and whether or not) it works.
    * Either PvP only or not.


    <Edit by Moderator: Redacted bit url>

    Show Spoiler
    How does it help my plugin?
    Plugin-wise, in absolutely no way.

    Then why on Earth would I donate?
    Time and effort was put into this plugin. Maybe this plugin makes your life easier, gets your server more players or simply makes you and the players have a good time.
    How do I donate?
    You can donate through PayPal. If you do not have the means to do so, you can also "donate" by showing your appreciation in the form of a nice comment. These donations and comments keep me motivated. Oh, and it keeps me alive in this overpriced studentroom I live in. It means the world to me.

    Thank you for reading this.

    Version 0.1.2
    * Updated for CraftBukkit 1.0.1-R1

    Version 0.1
    * Initial release.

    Any feedback is more than welcome!
    Last edited by a moderator: Feb 20, 2017
  2. Offline


    Sounds like MC's most needed plugin for PvP lol.

    Couple questions/suggestions. Does this work with McMMO? It would be great if it did.

    Additionally, it would be awesome to have this work with Axes as well, for McMMOs Axe skill :D
  3. Offline


    I am not sure how mcMMO works. But when I read the description below
    I am quite sure that none of these two passives will be influenced.

    As for axes, I could add that in in a later version of this plugin. I don't think mcMMO would be affected by this. In fact, I think it'll hook in perfectly ;)
  4. Offline


    Updated for CraftBukkit 1.0.1-R1 !​
  5. Offline


    add axes!
    just to clarify, it keeps diminishing the damage until the cooldown timer is up right?
  6. Offline


    Hmm, you could view it like this.

    {|||||||||} Full damage, first hit
    Say, the config is set to 3, the damage "recovers" over time.

    After one second, the soldier uses his sword again, one third of the damage has "recovered".
  7. Offline


    Oh okay, and if they were to hit again inbetween the first hit and the 2nd second it would deal no damage? Or would they deal the one third damage inbetween that ?
  8. Offline


    The damage a sword deals is dependant on the type of sword. Say, you put the setting on 5 seconds and your sword deals 10 default damage.

    A hit, 1 second after another hit, will deal 2 damage.
    A hit, 3 seconds after another hit, will deal 6 damage.
  9. Offline


    aah Okay I think I understand! Just needs axes to be added :]
  10. Offline


    This sounds like a great thing especially to help against hackers, thanks a lot. Is there a chance that you could add an option to completely block attacks until the configurable time is up, so someone would only be able to land 1 attack per configurable period, and perhaps give the player a message? For example a player can then hit once every two seconds, and regardless of how many times they try to hit between, it does not extend the wait time.
  11. Offline


    Moved to releases.
  12. Offline


    This is Amazing, and to make it better here are some little suggestions!

    Different Cooldowns/Commands Depending on Permission:

    DamageCooldown.30 <--- 3 second cooldown
    DamageCooldown.25 <--- 2.5 second cooldown
    DamageCooldown.100 <--- 10 second cooldown

    Command Example:
    /dc show

    So different permission groups can have different cooldowns. makes it easier to make
    classes ^^

    Personal Request:

    Heroes support xD
  13. Offline


    I have a Suggestion.
    Why dont you add Nodes for who has to obey the Cool down system. The reason for this is that it allows for the possiblity to Hook into other sword related Plugins that are far to over powered to kind of like a Nerf to weaken the skill.
  14. Offline


    Oh! is it also possible for this to work on Axes?

Share This Page