Inactive [ADMN/INFO] ConsoleScheduler v0.3.3 - Easy timed console commands [1.0.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by Rahazan, Oct 22, 2011.

  1. Offline

    Rahazan

    [​IMG]

    <Edit by Moderator: Redacted bit url>


    This plugin allows one to configure commands to be executed after a certain time period. As of v0.2 it supports repeated commands. As of v0.3 it also supports the commands to be executed at a specific time (12:00PM for instance).
    One can configure the console to use any command one would normally type in the console.
    For example, one might want to have the "save-all" command to be sent every hour. Another example, a very simple broadcast "say Remember to visit our forums!". A must-have!


    Show Spoiler
    Code:
    # ###############################################################
    # # Hello! Thank you for using ConsoleScheduler. Below you find #
    # # configuration settings for this plugin. Make sure you don't #
    # # use TABs in your text, only spaces!                         #
    # #                                                             #
    # # If you have any questions or requests, don't be afraid to   #
    # # send me a PM on minecraftforum.net! (username is Rahazan)   #
    # # And ehm, consider donating if you like this plugin :x       #
    # #                                                             #
    # # Yours truly,                                                #
    # # Rahazan                                                     #
    # ###############################################################
    # # Configuration explanation below ~                           #
    #   ALL TIMES ARE IN SECONDS!
    # Initial delay is the time before the plugin starts starting
    # the commands in the schedule. This is in place so that other
    # plugins have the time to start. You could set this to 0,
    # but errors may occur.
    # Make sure the Command1, Command2, Command3 etc. are numbered
    # in succession. This will ensure they all load.
    #
    # Also make sure you enter a command, heh.
    #
    # 1 minute = 60 seconds. 1 hour = 3600 seconds
    # HOUR in 24-hour format!
    # SpecificTime commands ALWAYS repeat!
    # ###############################################################
    
    InitialDelay: 5
    CommandSchedule:
      Command1:
        After: 5
        Repeat: true
        Interval: 30
        Command: say This is an example of a repeating command! It repeats every 30 seconds.
      Command2:
        After: 10
        Repeat: false
        Command: say This is an example of a non-repeating command which launches after 10 sec!
      Command3:
        SpecificTime: true
        Hour: 14
        Minute: 30
        Second: 0
        Command: say This is an example of a command which launches at 2:30:00PM!


    ----

    Dependencies:
    * None that I know of.

    Features:

    * Allows for repeating commands.
    * Allow for specific-time commands.

    * Easy to configure.

    * Lightweight.
    * Optional: Delay before it starts the schedule so that all other plugins can load.
    * No trouble with anything permissions-wise.


    Downloads:
    <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.


    Changelog



    Show Spoiler
    version 0.3.3
    * Updated for CB 1.0.1-R1

    version 0.3.2
    * Updated for CB #1542.

    Version 0.3.1
    * Hotfix for defaulting config. (Only one command as example now).

    Version 0.3

    * Added support for specific-time commands.

    Version 0.2



    * Added support for repeating commands.

    Version 0.1



    * Initial release.




    Any feedback is more than welcome!
     
    Last edited by a moderator: Feb 21, 2017
    kahlilnc, lastern, efstajas and 2 others like this.
  2. This sounds like it could be pretty useful.
     
  3. Offline

    Shooty

    Awsome, can you add "Real time" ? like at 8pm it say : "Event at 8:30pm.."
     
  4. Offline

    Rahazan

    @Shooty Yeah I could do that. Might take a while though.

    @Shooty It took a while, but your request has been added!

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

    Shooty

    Why a while ? Just use the time of the server :p
     
  6. Offline

    Rahazan

    @Shooty
    There is no such thing as the time of the server, except for the time of the minecraft day, unfortunately. Also, if I were to use a method like that, it'd make the plugin non-lightweight which I find unacceptable. I can't have a loop going every second to see if it is a certain time, no.

    It now calculates how long it is until the next "launch" is to be conducted and has a re-launch time of 1728000 server ticks.
    Even getting the current time in a reasonable format is a pain without using external libraries in Java. This took me a while to figure out :/.

    The plugin sets everything into the built-in scheduler of Bukkit when it starts intializing (after the DelayTime). This keeps it very, very lightweight.
     
  7. Offline

    Rahazan

    Added BukkitDev link and logo.
     
  8. Offline

    MonsieurApple

  9. Offline

    robxu9

    Doesn't work - the configuration keeps getting overwritten.
     
  10. Offline

    Rahazan

    Really? Ouch! Let me have a look.

    Fixed it, the old version required one to have at least 3 commands on schedule, or it would fill the missing with the default ones. The two other examples are no longer present in the default config.yml, they are still present in the opening post above (example config.yml).

    Pardon the inconvenience!

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

    firecombat4

    I love you! ive been waiting for a plugin like this for such a long time!
     
  12. Offline

    game_stailer94

    can you may split the config, from the commands?

    and can you add commands to add/remove timed commands to config?

    and maybe it possible to make commands exicuteable at an special date?

    I would like to use it to make donater Vip for a specifed time.
     
  13. Offline

    Rahazan

    1. ???
    3. Yeah, I could look into that at a later date, I am currently working on a different plugin.
    2 and 4. This is really not worth the effort, it is less work to look for a different plugin to add VIP for a certain duration. I know there are other plugins out there that add people to permissiongroups for specific times.
     
  14. Offline

    Bhikku

    Some colour support would be nice, or its not possible here?

    Edit: Hmm the config went always back after editing. I tryed editing it when server was online, saved ... but after a reload it was the same as before. Tryed stopping the server and than edit it, still same result, hmm i used this:
    Code:
    InitialDelay: 5
    CommandSchedule:
      Command1:
        After: 5
        Repeat: true
        Interval: 30
        Command: say blabla-somenoobnewsfornewbsand so on mb its to large? bli bla
      Command2:
        After: 60
        Repeat: false
        Command: say blabla-somemorenewbnews
    Mb the command was to large and the server need more than only one line, thats why it went b?

    Edit2: Ok now it works, redownload from bukkit.org(your dropbox link instead of bukkit-dev-link) seems to be it works now
     
  15. Offline

    HWei

    zecheesy likes this.
  16. Offline

    Rahazan

    First of all, why on earth are you posting this on this thread?
    Second, this plugin is way more lightweight and is, in my opinion, a ton easier to configure.
     
    Luke Zwekii likes this.
  17. Offline

    Bhikku

    Found a Bug, mb in bukkit mb in this plugin:
    No servererrors but:
    I config everything right and
    Code:
      Command3:
        After: 300
        Repeat: true
        Interval: 550
        Command: Broadcast Tipp - Einen Zugang zum Portalgebiet findet ihr in den Ghettos
    works fine. But after some time the Broadcast doesnt appear ingame, only on serverlogs. Every command works, but after 30 min every broadcast only appear on serverlog - not ingame.
     
  18. Offline

    HWei

    Many people do not know SimpleCronClone, and you have not mention in the introduction too. Anyway, SimpleCronClone has not been active for a long time. And I do not know if there is other scheduler plugin. So I wish ConsoleScheduler can do better and replace it and decided to tell you about that plugin. :p

    And I also wanted to see your reaction... >:D Forgive me... :)
     
  19. Offline

    Rahazan

    How can I mention something I did not even know? And why would I mention it in the first place? Maybe it has been forgotten since it is long outdated? If you want to see ConsoleScheduler do better, you might want to think about giving constructive feedback.

    I expect this to be a problem on Broadcast's side. I can't think of anything on ConsoleSchedulers' side that could cause this :/
     
  20. Offline

    Bhikku

    One request: can you add Random config? for example i have 5 commands and i wanna that they appear randomly instead of after some special time. possible?
     
  21. Offline

    9903286

    I just wrote an 4.3 kb file of commands, but everytime i try to save it, it just goes back to that old "This is an sutomtic messege" thingy! I uploaded the config i wrote (I now it shouldn't be TXT, but it wouldn't let me upload otherwise.)
     

    Attached Files:

  22. Offline

    Rahazan

    Hmm, I think I know what is causing this. It's a silly way that it copies over the default config.yml
    Try switching the last command in the config with the first. I think the first command can not be a "SpecificTime" command. Not sure about this.

    The above MAY be true, but I do not think so.
    Put ' things around the last command, otherwise it goes nuts when reading the URL.
    It's because : is part of the syntax of yml files. Check the text below.

    So:
    Code:
      Command23:
        After: 5
        Repeat: true
        Interval: 10
        Command: 'say Check out our website: http://thedevils.at.ua/! You will find rules and commands there.'
    

    How would you want to see this implemented? I mean, random can be ANYTHING without giving it bounds.
     
  23. Offline

    Bhikku

    What about a timer and a random command, let say there are 10 command1-10, we set the timer to 600 =>so every 600 sec he picks one of the 10 commads and say/broadcast them. Though sth like this, i just dislike all time the same message-wave, shoud be more iregular.
     
  24. Offline

    Spadow

    @Rahazan
    Does that plugin works if I want only mobs will spawn at 6 PM (real time) - 6 AM (real time) and 6 AM (real time) - 6 PM (real time) there wont be any mobs on the server?
     
  25. Offline

    Rahazan

    Updated for CraftBukkit #1542.
     
  26. Offline

    douglas_srs

    Hey, It would be awesome if we could make more than one command in one set and a command to reload the config file like /cs reload

    Thank you so much =)
     
  27. Offline

    puppydemon20

    When i try to load the config it lists out errors about the : sign why?
     
  28. Offline

    Rahazan

    If you have a string, for instance, the command, put ' in front and at the end of the command. The yml file reads every field, and : indicates a sub-field or something like that ;).

    so from
    say Example command: bla bla

    to
    'say Example command bla bla'
     
  29. Offline

    KA_Gamer

    The sad part for me is that I love this plugin but absolutely need it for my server to run. Can you please update (posting in case you're loosing motivation).
     
  30. Offline

    Rahazan

    Ehm, I'm pretty confident that this version will work on R1.0.1-R1 as well, although I haven't tried it.
     

Share This Page