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

    Should stop developing for today, forgot a line code... :/
    I'm really sorry.
    fixed.
     
  3. Offline

    Hyphe

    Add some kind of payment like on activating the command, the plugin takes an item from the player, so they would lose an item, and have wait for Startup. If they don't have the item, the command poofs.

    This makes commands like /home and /spawn even less used for cheating. Configurable, please :)
     
  4. Offline

    beecub

    mhhhh, not really suitable to this plugin, its for cooldown and warmup.
    mmhh, but the idea is really good, i write this down as request for a new plugin, ok?
     
  5. Offline

    RomaClanServer

    You could use CommandIconomy if you want to use money as the cost
     
  6. Offline

    beecub

    i think he does not use iconomy, he mentioned "items"
     
  7. Offline

    spunkiie

    Download again, but still showing 1.2 on my console, and give this error:

    17:28:37 [SEVERE] null loading bCoolDown v1.2.0 (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:632)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    Is the download link ok ?
    Here's my md5sum: bb373de2bd66cb4b72b6d312976e5c3d bCoolDown.jar

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

    beecub

    check bCoolDown.jar : d04aa7a9502c192699498c2fa1c280c8
    redownload it.
    if this does not help, the error looks like a problem with users.yml oder config.yml, rename your bCoolDown folder to _bCoolDown and test with new config :)
     
  9. Offline

    Hyphe

    I meant tangible items. I dislike iConomy, and other currency with virtual numbers. I hope this feature will be implemented here soon.

    Off-topic: I am desperate for a Casino plugin without iConomy :(
     
  10. Offline

    Singso

    A really wonderful plugin!
    Works really well for me :)

    Keep up the good work!
     
  11. Offline

    spunkiie

    Downloaded again, same md5sum. Can you please upload again on another host ? (i.e: dropbox)
     
  12. Offline

    o0AzzA0o

    /res tp: 10

    this kind of thing doesnt work?

    its useless for me to have delay on every /res command since it would mean people have delay on creating protections..........
     
  13. Offline

    beecub

    working on this, wait for next version :)

    removed file from server, uploaded again, check: d04aa7a9502c192699498c2fa1c280c8
    downloaded file, again checked: d04aa7a9502c192699498c2fa1c280c8

    ok guy, now its the right file.
     
    o0AzzA0o likes this.
  14. Offline

    Mike A

    For some reason my moderators still get the cooldown even with the permissions in their group. I've downloaded the latest version of it and restarted me server.
     
  15. Offline

    spunkiie

    beecub: Thank you for re-uploading :D

    Just found a bug: The plugin configurations is case sensitive :D - So my users started to use uppercase to bypass the delay eheh

    i.e: /home wait 10 seconds , /HOME don't

    :D
     
  16. Offline

    Kainzo

    I'm interested in this - how do you manage the warm ups? the scheduler / ticks or milliseconds ?
     
  17. Offline

    beecub

    smart users :D, solution in 1.3.1.
    write all commands in your config in lowercase!

    Version 1.3.1
    • lowercase/uppercase - fix
    scheduler, milliseconds, hashmap to add players + commands a timer is running for, and lastly a flag in users.yml to check warumup before cooldown starts.
    if you want to know more, dont abstain to look in my code or ask me more :)

    oh, forgot to say, i added you to my first post :)

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

    o0AzzA0o

    thanks that will make this plugin cover everything admin could dream of :)
     
  19. Offline

    spunkiie

    beecub: First of all, thank you for your time supporting this, I will for sure donate when my server start the VIP accounts.

    But, I suspect (read again: SUSPECT) that the flatfile storage is killin' my server. As I already told, my server has 300+ players, so, imagine how many times the users.yml file has read/write calls.

    I'm just thinking, most of the read is due to Cooldown process, so if I completely disable cooldowns, and use only WarmUp, could this have a performance impact ? If so, I will try.

    BTW: My server crashed two times (with 180 users on) in 30 minutes. Disabled the plugin and I have 1 hour uptime without crashes. (AGAIN: I'm not sure that bCoolDown was causing the crash)
     
  20. Offline

    beecub

    Possible, please try and give me response. And i will change the way i handle CoolDowns (possibly the same way i handle WarmUps)

    Any messages in console or log?
     
  21. Offline

    spunkiie

    Nope, it simple freeze.
    Will try WarmUp only. :)
     
  22. Offline

    Piedo_bear

    So it it possible to cancel on movement/damage taken? That would be awesome :p
     
  23. Offline

    beecub

    Simple freeze?, no console output?, mh, never had this on my servers up to now.
    Thanks a lot for testing so much, youre great :)

    Its on my To-Do list pinned above my desk :D
    Will be in one of the next versions :)

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

    Taranis01

    REQ: more Permissions support: different cooldowns/warmups for each Group :)

    different cooldowns/warmups for commands like "/warp X" and "/warp Y" doesn't work yet, right? would be nice to be added
     
  25. Offline

    imaxorz

    Is there no way to use commands that contain a space?

    I want /town spawn to have a cool down and a warp up. Also, /home and /home set but different times for each.

    Thanks!

    I also seem to get an error at start up, but it works....
    Show Spoiler


    2011-05-05 12:01:12 [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:632)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259) at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  26. Offline

    Taranis01

    hm...push :)
     
    imaxorz likes this.
  27. Offline

    dslip

    Is this working with b766 as I get errors on startup.
     
  28. Offline

    Cpt. Wolf

    Any chance of adding multi world inclusions/exclusions? My group runs a survival and free build world in addition to a normal world and nethers for each. Having a warm up and cool down in survival for things like home and sethome would be awesome, but not so much elsewhere.
     
  29. Offline

    Kainzo

    Finally tested it out - works like a dream - thank you.

    http://pastie.org/1891226

    After about an hour of using the plugin - i'm getting that now - it crashed / timed out our server, thoughts?

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

    beecub

    Strange error. Never had this before on my servers. And it seems not to be an error of bCoolDown.
    What is this command doing?
     
  31. Offline

    Kainzo

    Was using it with /cast and /warp. - spells and warp.
     

Share This Page