[ADMN] OnTimeCommands v1.4 - Commands that run at a certain time of day [1337]

Discussion in 'Inactive/Unsupported Plugins' started by briman0094, May 29, 2011.

  1. Offline

    briman0094

    OnTimeCommands is now on BukkitDev. Support will no longer be provided here. If you need help, put a ticket in on the BukkitDev page.
     
    monotonehell likes this.
  2. Offline

    SieniFani

    Oh, I removed the plugin... but can you show me an example for the config? I know here is allready an example but it isn't still working :(
     
  3. Offline

    nicquehen

    In the first page you have one.

    So it's ok for me it works !

    Code:
    enabled: true
    tasks:
        mobs_on_dimanche:
            nextrun: 00:01:00 08-28-2011
            repeat: day
            repeatspan: 7
            commands:
            - say Activation des monstres...
            - nospawn allowspawn servergame Creeper
            - nospawn allowspawn servergame Slime
            - nospawn allowspawn servergame Spider
            - nospawn allowspawn servergame Zombie
            - nospawn allowspawn servergame Skeleton
        mobs_on_mercredi:
            nextrun: 00:01:00 08-31-2011
            repeat: day
            repeatspan: 7
            commands:
            - say Activation des monstres...
            - nospawn allowspawn servergame Creeper
            - nospawn allowspawn servergame Slime
            - nospawn allowspawn servergame Spider
            - nospawn allowspawn servergame Zombie
            - nospawn allowspawn servergame Skeleton
        mobs_off_dimanche:
            nextrun: 23:59:00 08-28-2011
            repeat: day
            repeatspan: 7
            commands:
            - say desactivation des monstres...
            - nospawn denyspawn servergame Creeper
            - nospawn denyspawn servergame Slime
            - nospawn denyspawn servergame Spider
            - nospawn denyspawn servergame Zombie
            - nospawn denyspawn servergame Skeleton
            - nospawn despawn servergame Creeper
            - nospawn despawn servergame Slime
            - nospawn despawn servergame Spider
            - nospawn despawn servergame Zombie
            - nospawn despawn servergame Skeleton
        mobs_off_mercredi:
            nextrun: 23:59:00 08-31-2011
            repeat: day
            repeatspan: 7
            commands:
            - say desactivation des monstres...
            - nospawn denyspawn servergame Creeper
            - nospawn denyspawn servergame Slime
            - nospawn denyspawn servergame Spider
            - nospawn denyspawn servergame Zombie
            - nospawn denyspawn servergame Skeleton
            - nospawn despawn servergame Creeper
            - nospawn despawn servergame Slime
            - nospawn despawn servergame Spider
            - nospawn despawn servergame Zombie
            - nospawn despawn servergame Skeleton
        nether_off_samedi:
            nextrun: 23:59:00 08-27-2011
            repeat: day
            repeatspan: 7
            commands:
            - say desactivation du nether...
            - wxremove nether
        nether_off_mardi:
            nextrun: 23:59:00 08-30-2011
            repeat: day
            repeatspan: 7
            commands:
            - say desactivation du nether...
            - wxremove nether
     
  4. Offline

    Azlodin

    Currently, if the server terminates unexpectedly or there is a reboot, the "nextrun:" are populated with the current time at which the server was restarted. This really screws up any scheduled entries you have in the config, and have to manually change the entries proper. Is there no way to prevent this behavior when calculating the next start time for an entry?

    I see this behavior more when the the "repeat" option is set to day. It changes the date properly, but the time (hour, min, sec) of the day the task should run is now from the time the server rebooted.
     
  5. Offline

    briman0094

    Oh, sorry. That would be my fault...I accidentally had it set all of the fields "below" (shorter than) the one you selected to 0 instead of the last value they were at. So if you had it at "12:30:00 8-28-2011" and you had it repeating every day, it would set it to "00:00:00 8-28-2011" which obviously is not a valid date, so it reverts to setting it to the startup time. I'll fix that as soon as possible.
     
  6. Offline

    briman0094

    Plugin updated to version 1.4! All this version does is fix the bug described in the changelog (thank you Azlodin! :D).
     
  7. Offline

    davvem

    I can't get it to work! can you please send me a config where i auto saves every 20 minutes automaticly? i tried posting my config into ymlite, or what it was called, but it dident work, so please, a config of it auto saving every 20 minutes? would appriciate it!
     
  8. Offline

    briman0094

    Could you post the configuration you tried? I might be able to fix it.
     
  9. Offline

    Azlodin

    Here you go.

    Code:
    enabled: true
    tasks:
        autosave:
            commands:
            - save-all
            nextrun: 00:00:00 09-05-2011
            repeat: minute
            repeatspan: 20
    You can change the nextrun field to the time/date of your choosing to meet your needs. Just know this will just do execute the OP command save-all. If you are looking to make a backup of the world folder (or any folder/file) then you'll need to use something else.
     
  10. Offline

    briman0094

    Thank you Azlodin! You now have two cookies diamonds waiting for you :).
     
  11. Offline

    Azlodin

    Thanks! But, i prefer the cookies... (I am a chocoholic) =D
     
  12. Offline

    briman0094

    Oh...I forgot to mention that they are chocolate diamonds. Have fun! [​IMG]
     
  13. Offline

    davvem

    Thanks
     
  14. Offline

    davvem

    Ok, i don't get it to work again *embarassed* here's my config
    enabled: true
    tasks:
    autorestart:
    commands:
    - .restart
    nextrun: 20:13:40 09-06-2011
    repeat: minute
    repeatspan: 45
    autosave:
    commands:
    - .restart
    nextrun: 20:18:40 09-06-2011
    repeat: minute
    repeatspan: 20
    ( the spaces dident get pasted in this, but i got
    4 spaces after auto restart and save and 8 after everything else except tasks and enabled

    Please tell me what's wrong and maybe fix it? peharps? would really appriciate it!

    And if it's not about me, can anyone help me setup a config that makes it save and restart every 20 min, and restart every 45 min, but based on time? ( not the repatspan ) i hope i'm not asking too much, but would really appriciate some help.

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

    briman0094

    Try this:
    Code:
    enabled: true
    tasks:
        autorestart:
            commands:
                - /reload
            nextrun: 00:00:00 09-07-2011
            repeat: minute
            repeatspan: 45
        autosave:
            commands:
                - /save-all
                - /reload
            nextrun: 00:00:00 09-07-2011
            repeat: minute
            repeatspan: 20
    
    You may want to change the nextrun time of each task to what you want.
     
  16. Offline

    davvem

    But there's a problem, 1, it dosent works whit / becuse it's runned from console, and it works, untill the server restarts! then the next run time whont change! D= any change to add time to it? like 12:00 12:20 12:40 13:00 etc?
     
  17. Offline

    briman0094

    Oh, my bad. I forgot to remove the slash :p. What does the time change to when the server reloads? Can you post your config after one run please?
     
  18. Offline

    davvem

    Ok, i got it to work, it just stopped working for some hours... don't know why.
     
  19. Offline

    briman0094

    Good to hear :). I don't know why it won't work at certain hours...may be a Java glitch.
     
  20. Offline

    freakyfranck

    Could there be a random in the repeat. I would like to start and stop Zombie Apocalypse like 12 to 24 times a day on my server. I don't want it to be expected!
     
  21. Offline

    briman0094

    I could add that, but it seems a little "unfit" for a scheduled tasks plugin....maybe I'll branch the plugin and make a new one for tasks that repeat randomly.
     
  22. Offline

    nicquehen

    Don't work properly in 1.8.1

    A do a simple test :

    Code:
    enabled: true
    tasks:
        timeday:
            nextrun: 19:25:00 09-24-2011
            repeat: minute
            repeatspan: 2
            commands:
            - say Jour...
            - time day
        timenight:
            nextrun: 19:24:00 09-24-2011
            repeat: minute
            repeatspan: 2
            commands:
            - say Nuit...
            - time night
    The first task work but the repeat is do every minute and i ask every two minute...

    Need update to 1.8.1 please :)

    I don't find plugin with the same functionnality
     
  23. Offline

    briman0094

    1.8.1 wouldn't create that problem. I don't know why it isn't working...but all of the time functions (repeat, repeatspan, date, etc.) are handled by Java, so this must be some sort of Java problem, not Bukkit.
     
  24. Offline

    jungalist81

    You can really get creative using this automation plugin. One time I made it say in yellow "Notch has joined the game" and made Notch say hello to everyone then left. When I came online, everyone was like "OMG JUNG Guess what? NOTCH CAME!!!!"

    Epic trolling successful

    Another thing is that I like to set special commands when I am sleeping such as keeping it night time. Another Idea i made was flooding a castle and unflood it for 1 hour that had lots of chests full of valuables.

    So, id like to see this plugin continue working for 1.8 and beyond. So far, it works for me on 1185
     
  25. Offline

    Siriuo

    Is there going to be an update for this plugin for build 1240 if not is there an alternative plugin?
     
  26. Offline

    firecombat4

    Any chance you can update soon? Thanks
     
  27. Offline

    MikeA

    I'll test this out in a few, this seems like it could be useful.. :)
     
  28. Offline

    Gallion

    Now if only sk89q made it possible to select cuboid regions with coordinates... :c
     
  29. Offline

    firecombat4

    Why will you not update this awesome plugin?!!!
     
  30. Offline

    briman0094

    This plugin should work fine on the latest build (works with mine). Please post any errors here if it does not. I'll change the title.
     
  31. Offline

    dxwarlock

    Im getting this
    Code:
    2011-10-30 19:17:48 [INFO] [OnTimeCommands] Executing task "autosave"...
    2011-10-30 19:17:48 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'runtask' in plugin OnTimeCommands v1.4
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:501)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.IllegalAccessError: tried to access method org.bukkit.command.ConsoleCommandSender.<init>(Lorg/bukkit/Server;)V from class briman0094.ontimecommands.Task
        at briman0094.ontimecommands.Task.execute(Task.java:215)
        at briman0094.ontimecommands.OnTimeCommands.onCommand(OnTimeCommands.java:625)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 13 more
    using this as my config
    Code:
    enabled: true
    tasks:
        autosave:
            commands:
            - save-all
            nextrun: 00:00:05 09-05-2011
            repeat: minute
            repeatspan: 20
    
    any idea what I might be doing wrong?
     

Share This Page