Inactive [MISC] bCoolDown 1.3.1 - CoolDown and WarmUp for every plugins commands [803]

Discussion in 'Inactive/Unsupported Plugins' started by beecub, Apr 30, 2011.

  1. Offline

    beecub

    bCoolDown - CoolDown und WarmUp for every command
    Version: 1.3.1
    Download bCoolDown
    [​IMG]



    You want to let your users use commands only every x seconds?
    You want to set a time between typing command and executing?
    This is your plugin.


    Features:
    • set WarmUp time for every command
    • set CoolDown time for every command
    • custom info messages
    • Permissions support (not necessary)

    Examples:
    Show Spoiler

    Explanation:
    If youre typing command /give it will take 60 seconds before you get your items.
    If youre typing command /home it will take 20 seconds before you get home and you have to wait 30 seconds before you can use thecommand again.
    If youre tpying command /spawn youre going to the spawn and you have to wait 60 seconds before you can use the command again.
    Explanation:
    Use &command& to show command in your message.
    Use &seconds& to show seconds in your message (not for already started warm-ups).

    Example-Config:
    Show Spoiler

    #Add your commands in lowercase!
    commands:
    warmup:​
    /give: 60​
    /home: 20​
    cooldown:​
    /spawn: 60​
    /home: 30​
    options:
    message_warmup_alreadystarted: '&6Warm-Up process for&e &command& &6has already started.&f'​
    message_warmup: '&6Wait&e &seconds& seconds&6 before command&e &command& &6has warmed up.&f'​
    message_cooldown: '&6Wait&e &seconds& seconds&6 before you can use command&e &command& &6again.&f'​



    Commands:
    /bCoolDown - reloads config file (use it after changes in your config)


    Permissions:
    Show Spoiler




    Changelog:
    Version 1.3.1
    • lowercase/uppercase - fix
    Show Spoiler

    Version 1.3.0
    • no WarmUp or CoolDown for OPs
    • Permissions support (not necessary)
    Version 1.2.0
    • totally changed Warm-Up management
    Version 1.1.0
    • custom messages
    Version 1.0.1
    • fix: remove done WarmUp procress from hashmap
    Version 1.0.0
    • Initial Release



    (Thanks to DevRW for idea. Thanks to spunkiie for testing, bug-finding and his incredible belief ins this plugin. ;))
    Request?, i wanna do it. Give me Feedback. I want to hear your opinion. Thanks a lot :).

     
    kahlilnc and Tonysp like this.
  2. Offline

    beecub

    dont think this error comes from my plugin, but to investigate i want to ask you if you can observe if this happens again.
     
  3. Offline

    dslip

    19:11:17 [INFO] [bCoolDown] version 1.3.1 is enabled!
    19:11:17 [SEVERE] null loading bCoolDown v1.3.1 (Is it up to date?)
    java.lang.NullPointerException
    at java.util.LinkedList.addAll(LinkedList.java:269)
    at java.util.LinkedList.addAll(LinkedList.java:247)
    at com.beecub.bCoolDown.bCoolDownManager.clear(bCoolDownManager.java:76)
    at com.beecub.bCoolDown.bCoolDown.onEnable(bCoolDown.java:43)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:249)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    Getting this at startup using
    Craftbukkit version git-Bukkit-0.0.0-729-g5ee3f0f-b766jnks

    21:26:00 [INFO] [bCoolDown] version 1.3.1 is enabled!
    21:26:00 [SEVERE] null loading bCoolDown v1.3.1 (Is it up to date?)
    java.lang.NullPointerException
    at java.util.LinkedList.addAll(LinkedList.java:269)
    at java.util.LinkedList.addAll(LinkedList.java:247)
    at com.beecub.bCoolDown.bCoolDownManager.clear(bCoolDownManager.java:67)
    at com.beecub.bCoolDown.bCoolDown.onEnable(bCoolDown.java:43)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:676)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:249)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:131)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    Getting this at startup.

    Also how would I go about putting a cooldown on specific faction commands get '/f home' and not the who '/f' command

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  4. Offline

    Kainzo

    We're also getting the above errors on startup - I've removed it for now until it can be resolved. I'll give more testing tho.
     
  5. Offline

    oschaus

    @beecub
    We're getting the same errors. I think your work is great, and it's very important on our server; please update :D
     
  6. Offline

    beecub

    Sry for wating time.
    Fix for 766.
    Redownload it.
     
    oschaus likes this.
  7. Offline

    imaxorz

    Any planned support for commands with spaces in them? I would like to use it for towny, but it has a ton of commands that start with /town
     
  8. Offline

    beecub

    Yes, of course, working on it just in this moment ;)
     
    imaxorz likes this.
  9. Offline

    oschaus

    I too am getting errors. This one occurs when I try to reload, and it actually blocks the reload! (second try works tho)
    Code:
    17:48:10 [WARNING] Unexpected exception while parsing console command org.bukkit.command.CommandException: Unhandled exception executing 'reload' in [email protected] 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:89) 	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:270) 	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:396) 	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:381) 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287) 	at net.minecraft.server.ThreadServerApplication.run(SourceFile:394) Caused by: java.lang.NullPointerException 	at java.util.LinkedList.addAll(LinkedList.java:286) 	at java.util.LinkedList.addAll(LinkedList.java:264) 	at com.beecub.bCoolDown.bCoolDownManager.clear(bCoolDownManager.java:67) 	at com.beecub.bCoolDown.bCoolDown.onDisable(bCoolDown.java:52) 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:129) 	at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:690) 	at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:261) 	at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:255) 	at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManager.java:269) 	at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:308) 	at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201) 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85) 	... 5 more
     
  10. Offline

    beecub

    Known problem, but solved in the newest version. Please redownload it.
     
  11. Offline

    GmK

    @beecub

    My users continousley run into a problem:

    When I set e.g. /spawn to have a warmup of 5 and cooldown of 30, they do /warp, and it works like intended. But sometimes, and not linked to other things, the cooldown suddenly multiplies to amounts like 15903030 seconds, and i only reset at a server restart.

    This happens to players from all groups, permission levels, and so on. It doesnt happen all the time, but randomly.

    Any idea what would cause the cooldowns to derp like that?
     
  12. Offline

    dslip

    @beecub
    Are we any closer to having commands with spaces in them being accepted ?
     
  13. Offline

    darkwarriors

    how can i add specify command? like /f home or /warp blabla?
     
  14. Offline

    Taranis01

    @darkwarriors:
     
  15. Offline

    MikeA

    This doesn't seem to work with WorldEdit/WorldGuard (forgot which)'s /jumpto command.
    When i put /jumpto in the config, and save...

    It says there's a cooldown in-game but they can still use it anyways, is there a problem?
     
  16. Offline

    elitefroggy

    not working... my users.yml is empty, what do i type in it.

    can you disable the no warm-up and cool-down for OPS

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  17. Offline

    Nix0r

    Does this only work with normal commands? I tried add the faction command /f home to the list but it wasn't working.
     
  18. Offline

    darkwarriors

    yes i hope it has in todo list!
     
  19. Offline

    dslip

    @beecub
    I am really looking forward to the next update of this plugin to allow for 'spaces' in our commands, eg "/f home"

    Please update us on the status of this :)
     
    imaxorz likes this.
  20. Offline

    Stahlbrand

    One more that would be nice to get fixed.
    MCMMO /ptp (player). Not only does it happen instantly, once the warmup is done. It TP's you again! :D So that one is a little broken.

    BTW loving this plugin, looking forward to the next release.
     
  21. Offline

    imaxorz

    In
    Indeed please let us know, really looking forward for support commands with spaces.
     
  22. Offline

    darkwarriors

    so any news for command with white space?
     
  23. Offline

    OrtwinS

    @beecub
    Hi! very nice plugin!
    Could you make an option for the warmup to cancel if the player moves/gets hit?
     
  24. Offline

    MojoManagement

    @beecub
    any plan to implement
    movementAbort: true/false

    if player is channeling command on movement it will abort.
     
  25. Offline

    DevRW

    Seconding both of the above posts - I'd still really love to see an on hit or on move that cancels the command from going through!
     
  26. Offline

    Deses12

    Is this still mantained?
     
  27. Offline

    Tonysp

    When will be next update? :)
     
  28. Offline

    phrstbrn

    I created a patch that allows setting cooldowns that have a space in them

    Source code here:

    https://github.com/phrstbrn/bCoolDown

    config.yml

    Code:
    commands:
        warmup:
            /spawn: 60
            /home: 30
            /town spawn: 30
        cooldown:
            /spawn: 60
            /home: 30
            /town spawn: 30
    
    I sent a pull request to beecub with this feature. You can compile the code yourself if you want to try it.

    EDIT:

    I uploaded a .jar for those who can't compile it for themselves.

    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
    MojoManagement and LlmDl like this.
  29. Offline

    LlmDl

    Could you post a .jar? It'll probably save you a couple reply posts. This is v cool btw.
     
  30. Offline

    phrstbrn

    Done
     
    MojoManagement and LlmDl like this.
  31. Offline

    MrCamping

    Does warm-up cancel when a player move or gets hit?
    I see it as been asked and accepted already, but didn't saw anywhere saying it has been added.
     

Share This Page