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!
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.
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:
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!
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.
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 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.
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.
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.
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.
Sw_aG Will do this now Sw_aG Here: https://www.dropbox.com/s/jgkvklp018y4uqi/clockcommands.jar config will teach you how to use it. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
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.