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. Offline

    Nassergamez

    I honestly keep getting a [SEVERE} error when doing a specific times. Id <3 a updated version of this plugin :D
     
  3. Offline

    Rahazan

    @Nassergamez

    Updated to 1.0.1-R1, although I haven't thorougly tested it, I don't foresee any problems.
     
    KA_Gamer likes this.
  4. Offline

    KA_Gamer

    Thanks for updating!
     
    Rahazan likes this.
  5. glad i found this plugin
    abusing it right now :D
     
  6. Offline

    agubelu

    Thanks for this awesome plugin. It has saved me lots of problems!!

    A little question: How can I configure it so it runs a command every Tuesday at 21:30 (p.e.)?
     
  7. Offline

    Rahazan

    There is currently no feature that allows for this.. I have been shifting my time to other plugins :/
     
  8. Offline

    puppydemon20

    Thanks for making/posting this plugin it saves me the trouble of waking up in the morning and restarting my server. Although i had to reset the plugin every now and again but i don't mind.
     
    Rahazan likes this.
  9. Offline

    jamiemac262

    is there a command to reload the plugin after adding a new event? if not, could there be one?
     
  10. Offline

    efstajas

    Could you add the ability to execute a command on a given day, not only a given time? I want something to happen every sunday at 00:00.
     
  11. Offline

    2Bucks

    The schedule isn't working under my current config settings, what's wrong with them?

    CommandSchedule:
    Command1:
    After: 5
    Repeat: true
    Interval: 600
    Command: say Read the ENTIRE Tutorial before asking questions!

    Command2:
    After: 5
    Repeat: true
    Interval: 600
    Command: save-all

    Command3:
    After: 5
    Repeat: true
    Interval: 600
    Command: say Rules: Report all exploits immediately without abusing. Do not complain. Do not spam. Do not frustrate, annoy, or bother Admins. Do not be rude.
     
  12. Offline

    Rahazan

    YML files tend to get angry when you use : in a command. Try changing the last line to
     
  13. Offline

    2Bucks

    Thanks, got it
     
  14. Offline

    darkace713

    Hey, would it bepossible for you to make a list of YMAL fiel commands for this? I saw the ones for Repeat, one time, and Specific time. but I don't know if there are others out there that I could be using as well.

    BTW This plugin in one I've been looking for for a while and people keep asking "hey can you get some thingy that saves and restarts the server every 6hours?" and I finally found a plugin to do that as well as make anouncements and even launch special events every xseconds.

    Also as somebody mentioned a random feature would be very nice. Would it be possible to have one that you could set a time such as 1800seconds +-120 seconds 'say this is a randomly appearing message' and also be able to configure the start and looping abilities of it?

    last thing (sorry for so many requests/comments) but could you make it so that a command such and command1 could run multiply commands ant the same time? You could have it so they are ran at the same time but one right before the other so you can do something such as:
    coammand1 'say survival of the fittest' | 'spawn creeper 999' | 'say creepers have been spawned goodluck'
    just as an example (I know i didn't use the acctual format and i separated commands with the pipe | )
     
  15. Offline

    Rahazan

    I should totally rewrite this plugin. It is written in such a way that adding new things to it is a pain. I did not keep a lot in mind, when I was writing this plugin, which is my second ever-released plugin.
    Whether or not I will do this, with all these features, I do not know yet.
     
  16. Offline

    darkace713

    Yea if you do add in things like that it give it more customization on the server owners part so it doesn't make the messages 100% routine it gives some bit of spontaneous'ness? to it.

    Also for a second mod this is really great. It helps out people alot because of how easy it is to use/configure.
     
  17. Offline

    shauwk

    hey love your plugin, hope u keep improving it
     
  18. Offline

    Viperdream

    Awesome plugin, but is it possible to let the console do player commands?
    I'm afraid this would be really hard to do though.
     
  19. Offline

    TCGM

    No matter what I do, my config is ALWAYS wiped and reset to the default. AND every reload or reboot, when CS is booting up, it throws this error:

    26.01 10:01:35 [Server] INFOat net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    26.01 10:01:35 [Server] INFOat net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
    26.01 10:01:35 [Server] INFOat net.minecraft.server.MinecraftServer.w(MinecraftServer.java:502)
    26.01 10:01:35 [Server] INFOat org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    26.01 10:01:35 [Server] INFOat me.rahazan.consolescheduler.ConsoleScheduler$3.run(ConsoleScheduler.java:128)
    26.01 10:01:35 [Server] INFOat me.rahazan.consolescheduler.ConsoleScheduler.runCommand(ConsoleScheduler.java:144)
    26.01 10:01:35 [Server] INFOat org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:386)
    26.01 10:01:35 [Server] INFOat org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151)
    26.01 10:01:35 [Server] INFO java.lang.NullPointerException
    26.01 10:01:35 [Server] WARNING Task of 'ConsoleScheduler' generated an exception
    26.01 10:01:35 [Server] INFO [ConsoleScheduler] has attempted to put 1 commands on schedule.
    26.01 10:01:35 [Server] INFO getConfig contains CommandSchedule.Command1
    26.01 10:01:35 [Server] INFO ---------------[ConsoleScheduler]----------------
    26.01 10:01:35 [Server] INFO [ConsoleScheduler] has started executing commands
     
  20. Offline

    KA_Gamer

     
  21. Offline

    KA_Gamer

    He might be able to go off the code for Essential's "Sudo" command.
     
  22. Offline

    lastern

    This is the plugin that i was looking for!! Thanks! I don't need to setup stupid backup plugins and can save more memory :) [diamond]
     
  23. Offline

    kamild1996

    Please update to 1.1-R3! This plugin is really useful. :)
     
  24. Offline

    nlancaster

    Unable to get this working. 1.1 r3. keeps overwriting the config.yml. also what are the commands for specific time commands?

    Tried editing the yml with server off, on. anything same issue.

    This seems like exactly what I need to restart my server everyday and a specific time.

    Please help.
     
  25. Offline

    i7vSa7vi7y

    Please update to R6. I need this. Thanks.
     
  26. Offline

    teetor

    does this work with 1.2.4
    if u tell me u get [cake]
     
  27. Offline

    DaEgo

    tested and works fine for me with #2113 craftbukkit-1.2.4-R
    everything else is a config mistake i think^^

    AND NOW GIMME THE F**CKING COOOKIIEEEEEE!!!!!
     
  28. Offline

    teetor

    [cake] LOL
     
  29. Offline

    DaEgo

    nom nom nom... *rĂ¼lps*
     
  30. Offline

    xZoomehn

    Can you make it so you can actually make it do a command every so or so minutes because im making a prison server and i want my mien to be reset every 30 minutes!
     
  31. Offline

    KyleBoyer

    Can you allow color codes?
     

Share This Page