Filled ClockCommands

Discussion in 'Archived: Plugin Requests' started by Sw_aG, Jun 29, 2014.

?

Can you make the ClockCommands Plugin?

  1. I'm working on it!

    0 vote(s)
    0.0%
  2. I've made it!

    1 vote(s)
    100.0%
  3. This plugin is too hard for me

    0 vote(s)
    0.0%
  1. Offline

    Sw_aG

    Dear very kind Plugin makers,

    Plugin category: Admin-tools

    Suggested name: ClockCommands

    What I want: I want a plugin that run commands in a specific time,

    I want in the config to be:

    #Time its at which time (since the clock has start) the commands will be run (In minutes).
    Time: 5
    - say Death match begins in 10 minutes!
    Time: 10
    Commands:
    - say 10 Minutes past till the survival games will ends, every one now have a compass that point at the nearest player!
    - say Death match begins in 5 minutes!
    - give @a 345 1
    Time: 14
    Commands:
    - say 5 Minutes left to the survival games!
    - say Death match will start in 1 minute
    - sg death match start
    Time: 15
    Commands:
    - say Death match has started!, dont go too far
    - effect @a[kills=0] 7 64 64

    Ideas for commands:
    /clockcommands start
    /clockcommands stop
    /clockcommands reset

    When I'd like it by: ASAP

    Version: 1.7.2 R3

    Thanks In the future! :rolleyes:
     
  2. Offline

    intronate67

    Why does the time start at 5 or is that just what you have for your example
     
    Sw_aG likes this.
  3. Offline

    Sw_aG

    intronate67 Thats the example... The timer is starting in 0

    intronate67 So, can you please make it?

    *Bump*

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

    TheWolfBadger

    Sw_aG You can only bump every 24 hours.
     
  5. Offline

    fromgate

    Did I understand you right? You need a timer that executes command every day/week/month in defined time? For example every day at midgnight? Or every monday at 5:00?

    If yes - you can try my plugin ReActions. It contains tow kind of build-in timers: first one based on server time and second - on ingame time.

    Here is example of video, that shows how to create a wall-clock using ReActions and build-in timers:

     
  6. Offline

    Sw_aG

    You dident understood me well, i want a plugin that have a command that starts a timer in real life minutes, and in The config should be commands that get run (From console) in every specific time that will be set in the config!
     
  7. Offline

    TheWolfBadger

    Sw_aG I don't understand your config. How does it quite work? Does this plugin always run? I don't get it. Be more specific please.
     
  8. Offline

    5chris100

    TheWolfBadger What I think he wants is for a command to execute every x real-life minutes after the clock is started (started via /clockcommands start, think of it as a master time unit). For example:
    This will execute 5 minutes after /clockcommands start is run for the first time. "/clockcommands stop" can be thought as more of a pause, where it stays at the time it's currently at and only continues when "/clockcommands start" is re-executed. "/clockcommands reset" sets the timer back to 0.

    Idea for how to make: When "/clockcommands start" is executed for the first time, cast the Unix time of the server to a double, maybe startTime, and cast a zero to an integer (timeInt?). The Scheduler would, every minute, compare timeInt against all keys in the config that start with "Time". If there's a match, timeInt = (timeInt + 1) and execute all commands in the keys that it contains. If there's no match, still increase timeInt by 1, but don't execute anything. When "/clockcommands stop" is executed, get the current Unix time, cast it to stopTime, and set isStopped to true. Use an if statement with the boolean to keep timeInt from increasing, etc. "/clockcommands reset" casts a zero to timeInt and startTime. It then starts it over again.

    Sorry if it sounds confusing. It makes sense to me, so... Hope you get the gist of it ;)
     
    TheWolfBadger and Sw_aG like this.
  9. Offline

    Sw_aG

    Exactly!
    Btw TheWolfBadger If you dont understand something PM me or tahg me...
     
    5chris100 likes this.
  10. Offline

    TheWolfBadger

    5chris100 Got it. I don't know if I'm up to this task though hahaha. Sorry.
     
    5chris100 likes this.
  11. Offline

    Sw_aG

    TheWolfBadger Its ok, thanks for trying!

    5chris100 I Dont want to be rude, but can you please make it?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  12. Offline

    5chris100

    Oh, thought my post went through. I'm really sorry, but I can't. I'm currently in the middle of three other plugins. :( Also, I'm not that good with the Scheduler API, eheheh... Sorry! Maybe you can learn Java and make it yourself. That's what I did when I needed a plugin, and now I'm self-sufficient.
     
  13. Offline

    intronate67

    I got this i can probably finish later tonight

    May i ask what the reset command does? does it restart the countdown or stop it and clear the config?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
    Sw_aG likes this.
  14. Offline

    Sw_aG

    The reset command is stopping the countdown and resetting the time back to 0.
    Thanks btw :)

    intronate67 So can you make it? please?

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

    intronate67

    Sure
     
    Sw_aG likes this.
  16. Offline

    Sw_aG

  17. Offline

    Sw_aG

    intronate67 I don't want to be rude, but when can you make?
    Thanks for your posts and help everyone :)
     
  18. Offline

    Sw_aG

    When are you gonna make it?
     
  19. Offline

    Sw_aG

    *Bump*

    *Bump*

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

    Sw_aG

    Dude can you please work on it?
    Its very important.
     
  21. Offline

    Sw_aG

    intronate67 Are you working on it make?
    Sorry to ask but its important
     
  22. Offline

    welsar55

    Sw_aG likes this.
  23. Offline

    Sw_aG

    welsar55 Kk thanks, but I think he left this post... I've pm him also, he dident answer.
     
  24. Offline

    welsar55

    Last edited by a moderator: Jun 9, 2016
    Sw_aG likes this.
  25. Offline

    Sw_aG

    welsar55 Thanks, but i dont know why but the plugins isn't workin, the folder and the config has been generated Already but the commands aren't workin and mid-game (While in the server) also the plugin isn't on the plugins list
    There's no log.
     
  26. Offline

    timtower Administrator Administrator Moderator

    Sw_aG If it isn't working then there should be a log or it isn't installed at all
     
  27. Offline

    Sw_aG

    It's already installed but it worked only at the first time...
     
  28. Offline

    timtower Administrator Administrator Moderator

    Please post ypur server log.
     
  29. Offline

    Sw_aG

  30. Offline

    timtower Administrator Administrator Moderator

    Server log is something else then the error log. Server log is the one that you alwayd have.
     

Share This Page