ConsoleScheduler Easy timed console commands.
Version: v1.4.10
This plugin allows one to configure commands to be executed after a certain time period. It supports repeated command, 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!
Example config.yml
How to install
Dependencies:
Features:
- Allows for repeating commands.
- Command for reload the config file.
- Allow for specific-time commands.
- Easy to configure.
- Lightweight.
- Optional: Delay before it starts the schedule so that all other plugins can load.
- Update Checker to automatic update your plugin.
Update Checking:
- This plugin utilizes Gravity's update checker to notify when a new version of the plugin is out, it will automatically download the new version. It also notifies the admins that a new plugin version is available. This can be enabled or disabled in the config.yml. To disable update-checking, set CheckForUpdates to false.
Commands:
- /csc help - Show a list of commands
- /csc reload - reload the config file
Permissions:
- ConsoleScheduler.use - User with this permission has full access to the plugin commands
If you like my work, feel free to donate :)
Does it also support commands from other plugins?
when I change the config of the plugin the plugin just breaks here is what console says
[12:26:25 WARN]: Plugin ConsoleScheduler v1.4.9 does not specify an api-version.
[12:26:25 ERROR]: Fatal error trying to convert ConsoleScheduler v1.4.9:com/RkCraft/ConsoleScheduler/ConsoleScheduler.class
java.lang.IllegalArgumentException: Unsupported class file major version 60
at org.bukkit.craftbukkit.libs.org.objectweb.asm.ClassReader.<init>(ClassReader.java:195) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.craftbukkit.libs.org.objectweb.asm.ClassReader.<init>(ClassReader.java:176) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.craftbukkit.libs.org.objectweb.asm.ClassReader.<init>(ClassReader.java:162) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.craftbukkit.v1_14_R1.util.Commodore.convert(Commodore.java:170) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.craftbukkit.v1_14_R1.util.CraftMagicNumbers.processClass(CraftMagicNumbers.java:283) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:112) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:85) ~[patched_1.14.4.jar:git-Paper-243]
at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
at java.lang.Class.forName0(Native Method) ~[?:?]
at java.lang.Class.forName(Class.java:398) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:63) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:134) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:337) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:257) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.loadPlugins(CraftServer.java:355) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:226) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:876) ~[patched_1.14.4.jar:git-Paper-243]
at java.lang.Thread.run(Thread.java:829) [?:?]
[12:26:25 ERROR]: Could not load 'plugins/ConsoleScheduler.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/RkCraft/ConsoleScheduler/ConsoleScheduler has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 55.0
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:138) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:337) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:257) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.loadPlugins(CraftServer.java:355) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:226) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:876) ~[patched_1.14.4.jar:git-Paper-243]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.UnsupportedClassVersionError: com/RkCraft/ConsoleScheduler/ConsoleScheduler has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 55.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.lang.ClassLoader.defineClass(ClassLoader.java:1017) ~[?:?]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:135) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:85) ~[patched_1.14.4.jar:git-Paper-243]
at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
at java.lang.Class.forName0(Native Method) ~[?:?]
at java.lang.Class.forName(Class.java:398) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:63) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:134) ~[patched_1.14.4.jar:git-Paper-243]
... 6 more
In reply to amirking14:
If you are using any version of Paper prior to 1.17, you need to use the 1.4.8 version of consolescheduler. The latest version bring some changes that may break the plugin on any version prior 1.17
You need to downgrade you plugin version and turn off the auto updater until you decide to upgrade your server to 1.17
It was a bit rough to get started using this plugin but after taking a bit of time to figure things out, it works like a charm. Overall, it's a very good plugin once you get past the small learning curve.
It's also one of very few plugins I could find that does something like this (scheduled commands) in 1.17. Kudos to the devs and hoping for more updates.
Useful Notes to anyone using this:
-Use the config file linked to this website page('example config.yml') as a default config(this is because the one on the website also shows how to use the specific time function)
-Times are local to computer. So if you set it to go off at 3am, it will do so according to your computer's timezone. Also, it will not go off exactly at the time specified but more like +-15 seconds
-The syntax is VERY STRICT. Which is why I recommend editing the config file given on the website.
-If you messed up any of the syntax, the config resets to default and whatever you have written will be overriden. So if anything of yours get overriden, you've done something wrong in formatting
-Sentences like 'Hello my name is: Bob' cannot be written because the ':' will interfere with the syntax. A workaround is using the tellraw command because the ':' will be encased in brackets
-You can schedule more than 3 commands by creating a 'command4' in the exact same way as the others (again, syntax is VERY strict. it must be EXACTLY like the others)
-You cannot have a 'command1' and then immediately a 'command3'. You will have to rename 'command3' to 'command2'
-When the plugin has loaded, it sends a useful message in console along the lines of '[ConsoleScheduler] has attempted to put 1 commands on schedule.' You can use this to check if all your desired commands have loaded
So what is the time zone of the time thingy?
It's local to the computer time
Ah, works again, thanks for this plugin!
I can't use the plugin.
Here is my config file:
And here is the result:
HEEELP!!!
I'm going crazy!
Whens the next updated version being released?
The initial delay is driving me nuts. I can't turn it off and setting it to a really long delay doesn't work, either. I only want to use this plugin at specific time intervals so I don't really need a delay between re-running commands. I had to uninstall. I even tried just removing the Initial Delay line but it'll still automatically broadcasting the command every few seconds when I have it set to go off at 5 PM Central time which is about 22 hours from now!
I keep getting this error in my console, WARN Task #123338 for ConsoleScheduler v1.4.6.0 generated an exception
boomclaw will now take over this project
Someone please tell me what timezone I am supposed to use for this plugin, I have tried like 8 and so far no scheduled timed tasks are working, only repeating tasks.
EDIT: I checked ALL time zones, none of them are working. There must be a problem with the scheduled tasks, as only repeating are working.
Was told to send this here: https://www.spigotmc.org/threads/plugins-triggering-commands-async.31815/ I need to use this plugin on my server but will error.
/csc reload can't reload schedulers, only restart the server can make my change in config.yml take effect.
And the SpecificTime is not accurate, commands usually execute 10 seconds later than set time.
And please!! add SpecificDay(etc. Jan 1st) and SpecificWeekdays(etc. Mon) in ver 2.0
the reload command only works if you modify existent schedules, is a know bug and will be fixed soon.
the plugin needs to learn how to count changed the interval to be 1800 so it run every 30 minutes but still runs the command every 30 seconds have reloaded the config and restarted the server.
Teach it to count properly please
is it possible to add "specific date"? for example, specific date: Wednesday I was thinking on adding events only on Wednesdays but I can't be always on and I want the event to take place even if I'm not around.
Hi I'm trying to use the plugin to run the commands - mv reload - hd reload
I have it set to run every hour and the commands work fine in the console when I type them in but they do not work when this plugin trys to run them through the console. I know the plugin is working fine because I have other commands like broadcast and worldreset working on it.
Here is the error I receive in the console: http://pastebin.com/fZRXaddT
Here is my config too: http://pastebin.com/5ygNa3E5
Thank You for the help!