Inactive [GEN/MECH] boosCoolDown 1.5.0 - Cooldowns and Warmups for all commands that you wish! [1240]

Discussion in 'Inactive/Unsupported Plugins' started by Boos, Jul 26, 2011.

  1. MOVED TO BUKKITDEV! New version there!
    boosCooldown - Cooldowns and Warmups for all (plugins)commands that you wish!
    Version: v1.5.0
    JAR : SOURCE

    Ever wanted to set cooldowns to your warps? Ever wanted to put that /warp arena to 5 minutes cooldown while putting /warp market to 1 minute cooldown? Then this plugin is for you! This plugin allows you to set warmups and cooldowns for every single command (even with parameters!) on your server! Configuration is extremely easy! Localization is even much easier!

    Features:
    • Permissions support!
    • Set warmups for commands you wish (even with parameters like /warp arena!).
    • Set cooldowns for commands you wish (even with parameters like /warp arena!) .
    • Cooldowns /warmups are not case sensitive! So if user uses /warp arena and then /warp ARena, he will still have cooldown!
    • Cooldowns can be cleared on server restart/reload
    • Cooldowns can be saved on server restart, to ensure that kits with 24 hours Cooldown will be used only once per 24 hours and not after every restart!
    • Easiest configuration EVER!
    • Easiest localization EVER!
    • Lightweight!
    Permissions:
    Show Spoiler

    CoolDown/Warm-Up exception:
    Code:
     - boosCoolDown.exception  

    Changelog:

    Version 1.5.0
    • Added: Warmup interrupts on damage!
    • Fixed: Some mayor bugs
    • Updated to latest recommended build
    Version 1.4.4
    • Fixed random ConcurrentModificationException, which caused server to crash
    Show Spoiler
    Version 1.4.3
    • Fixed warmup stucking when user disconnects while warming up
    Version 1.4.2
    • NPE fixes
    Version 1.4.1
    • Initial release
    Known Issues:
    • When you set cancel on damage to false in config, warmups will stuck after first command use. To fix it, stop server, set cance on damage to true, delete users.yml file and start server.
    Configuration:
    Show Spoiler

    Code:
    commands:
        warmup:
            /give: 60
            /home: 20
        cooldown:
            /spawn: 60
            /home: 30
        options:
            unit_minutes: minutes
    #set your word for minutes in messages (for localizations)
            clear_on_restart: false
    #if false, cooldowns will be saved on server restart/reload, if true, cooldowns will be cleared on server restart/reload
            unit_seconds: seconds
    #set your word for seconds in messages (for localizations)
            unit_hours: hours
    #set your word for hours in messages (for localizations)
            message_warmup_alreadystarted: '&6Warm-Up process for&e &command& &6has already
                started.&f'
    #set your own message that user gets when he uses command, that is already on warmup
            message_warmup: '&6Wait&e &seconds& &unit&&6 before command&e &command& &6has
                warmed up.&f'
    #set your own message that user gets when he uses command, that has set warmup in this config
            message_cooldown: '&6Wait&e &seconds& &unit&&6 before you can use command&e
                &command& &6again.&f'
    #set your own message that user gets when he uses command, that is still on cooldown
    #IMPORTANT NOTE: &seconds& and &unit& and &command& are variables! Do not modify them or delete them!
    


    WARNING! Please read this before setting your configuration!
    Show Spoiler

    If you use configuration like this (warp with and without parameter), it will cause big problems! Please avoid it!
    Code:
    commands:
        warmup:
            /give: 60
            /home: 20
            /warp: 60
            /warp arena: 20
        cooldown:
            /spawn: 60
            /home: 30
    
    You can use configuration like this:

    Code:
    commands:
        warmup:
            /give: 60
            /home: 20
            /warp: 60
        cooldown:
            /spawn: 60
            /home: 30
            /warp arena: 20
            /warp market: 120
    
    Or like this:

    Code:
    commands:
        warmup:
            /give: 60
            /home: 20
            /warp arena: 20
            /warp market: 20
        cooldown:
            /spawn: 60
            /home: 30
            /warp: 120
    
    Or like this:
    Code:
    commands:
        warmup:
            /give: 60
            /home: 20
            /warp arena: 20
            /warp market: 120
        cooldown:
            /spawn: 60
            /home: 30
            /warp arena: 20
            /warp market: 120
    
    Or like this:
    Code:
    commands:
        warmup:
            /give: 60
            /home: 20
            /warp: 20
        cooldown:
            /spawn: 60
            /home: 30
            /warp: 120
    
    JUST DO NOT USE CONFIGURATION THAT HAS command with and without parameter UNDER SAME CATEGORY!

    Big thanks to beecub and sources of his plugin bCooldown!
    Big thanks to Pinkishu for pulling warmup interrupts on damage.
     
    AS1LV3RN1NJA and Hopium like this.
  2. Good news, I've just updated this plugin :).
    New version can be found on BukkitDev, see first post for link.
     
    1cec0ld and AS1LV3RN1NJA like this.
  3. Offline

    FuSeS

    I would love an updated version of this plugin. It would be awesome to have it work with minecraft 1.0 if you know what im saying......
     
  4. Offline

    chisox8

    whats wrong with this configuration?

    Code:
    commands:
        warmups:
            warmup:
                /spawn:10
        cooldowns:
            cooldown
                /spawn:120
     
        options:
            message_warmup_cancelled_by_damage: '&6Warm-ups have been cancelled due to
                receiving damage.&f'
            message_warmup_cancelled_by_sprint: '&6Warm-ups have been cancelled due to
                sprinting.&f'
            cancel_warmup_on_damage: false
            unit_seconds: seconds
            message_cooldown: '&6Wait&e &seconds& &unit&&6 before you can use command&e
                &command& &6again.&f'
            message_warmup_cancelled_by_move: '&6Command cancelled due to moving.&f'
            clear_on_restart: false
            unit_minutes: minutes
            cancel_warmup_on_sneak: true
            cancel_warmup_on_move: true
            cancel_warmup_on_sprint: true
            unit_hours: hours
            paid_for_command_message: '&6Price of&e &command& &6was&e %s &6and you now
                have&e %s'
            paid_error: '&6An error has occured:&e %s'
            message_warmup_alreadystarted: '&6Warm-Up process for&e &command& &6has already
                started.&f'
            message_warmup: '&6Wait&e &seconds& &unit&&6 before command&e &command& &6has
                warmed up. Please do not move!&f'
            message_warmup_cancelled_by_sneak: '&6Command cancelled due to
                sneaking.&f'
    
    It doesn't give an error, it starts up correctly, it just doesn't work! Thanks!
     
  5. That is old config file. Please delete it, start your server and new one will be generated.
     
  6. Offline

    chisox8

    Ok, i might try that!
     
  7. Offline

    Mercury

    Boos
    PHP:
    01.02 16:03:39 [ServerINFO This error is logged only onceit could have occurred multiple times by now.
    01.02 16:03:39 [ServerINFO    at java.util.TimerThread.run(Timer.java:505)
    01.02 16:03:39 [ServerINFO    at java.util.TimerThread.mainLoop(Timer.java:555)
    01.02 16:03:39 [ServerINFO    at cz.boosik.boosCooldown.boosWarmUpTimer.run(boosWarmUpTimer.java:32)
    01.02 16:03:39 [ServerINFO    at org.bukkit.craftbukkit.entity.CraftPlayer.chat(CraftPlayer.java:204)
    01.02 16:03:39 [ServerINFO    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:737)
    01.02 16:03:39 [ServerINFO    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:777)
    01.02 16:03:39 [ServerINFO    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:386)
    01.02 16:03:39 [ServerINFO    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    01.02 16:03:39 [ServerINFO    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    01.02 16:03:39 [ServerINFO    at com.sk89q.commandbook.CommandBookPlugin.onCommand(CommandBookPlugin.java:244)
    01.02 16:03:39 [ServerINFO    at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:348)
    01.02 16:03:39 [ServerINFO    at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:448)
    01.02 16:03:39 [ServerINFO    at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:455)
    01.02 16:03:39 [ServerINFO    at java.lang.reflect.Method.invoke(Method.java:601)
    01.02 16:03:39 [ServerINFO    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    01.02 16:03:39 [ServerINFO    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    01.02 16:03:39 [ServerINFO    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    01.02 16:03:39 [ServerINFO    at com.sk89q.commandbook.commands.HomeCommands.home(HomeCommands.java:89)
    01.02 16:03:39 [ServerINFO    at com.sk89q.commandbook.util.PlayerIteratorAction.iterate(PlayerIteratorAction.java:56)
    01.02 16:03:39 [ServerINFO    at com.sk89q.commandbook.util.TeleportPlayerIterator.perform(TeleportPlayerIterator.java:41)
    01.02 16:03:39 [ServerINFO    at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:157)
    01.02 16:03:39 [ServerINFO    at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:299)
    01.02 16:03:39 [ServerINFO    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    01.02 16:03:39 [ServerINFO    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    01.02 16:03:39 [ServerINFO    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
    01.02 16:03:39 [ServerINFO    at java.lang.reflect.Method.invoke(Method.java:601)
    01.02 16:03:39 [ServerINFO    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    01.02 16:03:39 [ServerINFO    at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
    01.02 16:03:39 [ServerINFO    at org.bukkit.event.Listener.onPlayerTeleport(Listener:0)
    01.02 16:03:39 [ServerINFO java.lang.IllegalAccessErrorSynchronized code got accessed from another threadjava.util.TimerThread
    01.02 16
    :03:39 [ServerWARNING Could not properly handle event PLAYER_TELEPORT:
    PHP:
    01.02 16:09:22 [ServerINFO This error is logged only onceit could have occurred multiple times by now.
    01.02 16:09:22 [ServerINFO    at java.util.TimerThread.run(Timer.java:505)
    01.02 16:09:22 [ServerINFO    at java.util.TimerThread.mainLoop(Timer.java:555)
    01.02 16:09:22 [ServerINFO    at cz.boosik.boosCooldown.boosWarmUpTimer.run(boosWarmUpTimer.java:32)
    01.02 16:09:22 [ServerINFO    at org.bukkit.craftbukkit.entity.CraftPlayer.chat(CraftPlayer.java:204)
    01.02 16:09:22 [ServerINFO    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:737)
    01.02 16:09:22 [ServerINFO    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:777)
    01.02 16:09:22 [ServerINFO    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:386)
    01.02 16:09:22 [ServerINFO    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    01.02 16:09:22 [ServerINFO    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    01.02 16:09:22 [ServerINFO    at com.sk89q.commandbook.CommandBookPlugin.onCommand(CommandBookPlugin.java:244)
    01.02 16:09:22 [ServerINFO    at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:348)
    01.02 16:09:22 [ServerINFO    at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:448)
    01.02 16:09:22 [ServerINFO    at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:455)
    01.02 16:09:22 [ServerINFO    at java.lang.reflect.Method.invoke(Method.java:601)
    01.02 16:09:22 [ServerINFO    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    01.02 16:09:22 [ServerINFO    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    01.02 16:09:22 [ServerINFO    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    01.02 16:09:22 [ServerINFO    at com.sk89q.commandbook.commands.HomeCommands.home(HomeCommands.java:89)
    01.02 16:09:22 [ServerINFO    at com.sk89q.commandbook.util.PlayerIteratorAction.iterate(PlayerIteratorAction.java:56)
    01.02 16:09:22 [ServerINFO    at com.sk89q.commandbook.util.TeleportPlayerIterator.perform(TeleportPlayerIterator.java:41)
    01.02 16:09:22 [ServerINFO    at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:157)
    01.02 16:09:22 [ServerINFO    at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:316)
    01.02 16:09:22 [ServerINFO    at net.minecraft.server.NetServerHandler.teleport(NetServerHandler.java:440)
    01.02 16:09:22 [ServerINFO    at org.getspout.spout.SpoutNetServerHandler.sendPacket(SpoutNetServerHandler.java:556)
    01.02 16:09:22 [ServerINFO    at org.getspout.spout.SpoutNetServerHandler.queueOutputPacket(SpoutNetServerHandler.java:565)
    01.02 16:09:22 [ServerINFO    at org.getspout.spout.SpoutNetServerHandler.updateActiveChunks(SpoutNetServerHandler.java:709)
    01.02 16:09:22 [ServerINFO    at org.getspout.spout.SpoutNetServerHandler.playerTeleported(SpoutNetServerHandler.java:838)
    01.02 16:09:22 [ServerINFO    at org.getspout.spout.SpoutNetServerHandler.getFastPacket51(SpoutNetServerHandler.java:876)
    01.02 16:09:22 [ServerINFO    at org.bukkit.craftbukkit.CraftWorld.loadChunk(CraftWorld.java:136)
    01.02 16:09:22 [ServerINFO    at org.bukkit.craftbukkit.CraftWorld.loadChunk(CraftWorld.java:249)
    01.02 16:09:22 [ServerINFO    at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:103)
    01.02 16:09:22 [ServerINFO    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    01.02 16:09:22 [ServerINFO    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    01.02 16:09:22 [ServerINFO    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
    01.02 16:09:22 [ServerINFO    at java.lang.reflect.Method.invoke(Method.java:601)
    01.02 16:09:22 [ServerINFO    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    01.02 16:09:22 [ServerINFO    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    01.02 16:09:22 [ServerINFO    at org.bukkit.event.Listener.onChunkLoad(Listener:0)
    01.02 16:09:22 [ServerINFO java.lang.IllegalAccessErrorSynchronized code got accessed from another threadjava.util.TimerThread
    01.02 16
    :09:22 [ServerWARNING Could not properly handle event CHUNK_LOAD:
    01.02 16:09:22 [ServerINFO [boosCooldown v2.0.1Disabled!
    01.02 16:09:22 [ServerINFO [boosCooldownversion 2.0.1 disabled!
    01.02 16:09:22 [ServerINFO [boosCooldownUnloading boosCooldown v2.0.1.
    Running 1.1-R3 @ latest boosCooldown.
     
  8. Mercury
    Thats because my plugin is incompatible with NoLagg at this time.
     
  9. Offline

    Mercury

    Is this problem related with NoLagg or your plugin ?
     
  10. I can say with booth. My plugin uses async timers, to have correct warmups even with low server tick rate. That can cause some very rare errors in conjunction with of other plugins (it never happened on my server (running more than year)).
    NoLagg treads it as very bad and has checks in it, that prevents this async timers from accessing bukkit methods and instead throwing this errors. I really don't like that NoLagg plugin interferes with other plugins features and basically disables them from doing what they should do!
    If you remove NoLagg, all should be fine and you will get rid of that errors.
     
  11. Offline

    Mercury

    Do you recommend any other Performance booster like NoLagg which do not cause so much trouble to plugins ?
     
  12. Offline

    Blabba

    Is it possible to put a warm up on commands that dont use a "/" I want to delay /f home but using just "f home" will also teleport the user.
     
  13. Read description on bukkit dev.
     
  14. Offline

    md_5

    Long time no see Boos. You will notice that this thread has now been placed into the Inactive Plugin subforum.
    If you wish to revive this plugin, please ensure that you update and test compatibility with the latest recommended Bukkit build before reporting your original post, asking for it to be moved back to the release forum.

    Thanks for your time.
    md_5
     
  15. I can confirm this is still working.
     

Share This Page