ConsoleScheduler
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 :)
Is it possibel te set a specific Date and time and let it repeat?
Since BoomerBR is away for now, devbuilds for my fork can be found here: https://ci.herocc.com/job/Console%20Scheduler/
@HeroCC
Due to some problems, i have to pause my development for undetermined time. I will merge you request but i have no time to compile neither test it. If you want to compile and post it here it's fine.
@samueli5750
Fixed it in this PR
@mellowism
I haven't tested it.
Does it work with bungeecord?
@TWSSYesterday
looks like it's a incompatibility with paperspigot, i will take a look
@BoomerBR
I'm on the latest 1.8.x PaperSpigot and it's happening
@samueli5750
Are you using PaperSpigot? wich command are you trying to run?
[04:02:39] [Craft Scheduler Thread - 1413][ERROR]: Please notify author of plugin causing this execution to fix this bug! see: http://bit.ly/1oSiM6C java.lang.Throwable at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCommand(CraftServer.java:646) [patched_1.9.2.jar:git-Paper-724] at BoomerBR.Plugin.ConsoleScheduler.runCommand(ConsoleScheduler.java:138) [ConsoleScheduler.jar:?] at BoomerBR.Plugin.ConsoleScheduler$4.run(ConsoleScheduler.java:132) [ConsoleScheduler.jar:?] at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:58) [patched_1.9.2.jar:git-Paper-724] at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) [patched_1.9.2.jar:git-Paper-724] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [patched_1.9.2.jar:git-Paper-724] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_77] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_77]
EDIT:
I updated the plugin and now there's no errors.
@BoomerBR
A long time?
http://dev.bukkit.org/bukkit-plugins/iconomy-7/
Check it. It has even been updated to 1.9
@nashoxx
This crash it's been caused by iConomy, i suggest you to use other economy plugin, because iConomy it's been abandoned for a long time.
27.03 12:49:29 [Server] WARN Exception in thread "Craft Scheduler Thread - 3036" 27.03 12:49:29 [Server] WARN org.apache.commons.lang.UnhandledException: Plugin ConsoleScheduler v1.4.5 generated an exception while executing task 290 27.03 12:49:29 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) 27.03 12:49:29 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 27.03 12:49:29 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 27.03 12:49:29 [Server] INFO at java.lang.Thread.run(Unknown Source) 27.03 12:49:29 [Server] INFO Caused by: org.bukkit.command.CommandException: Unhandled exception executing command 'money' in plugin iConomy v6.0.10b 27.03 12:49:29 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) 27.03 12:49:29 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) 27.03 12:49:29 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) 27.03 12:49:29 [Server] INFO at BoomerBR.Plugin.ConsoleScheduler.runCommand(ConsoleScheduler.java:138) 27.03 12:49:29 [Server] INFO at BoomerBR.Plugin.ConsoleScheduler$2.run(ConsoleScheduler.java:110) 27.03 12:49:29 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) 27.03 12:49:29 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) 27.03 12:49:29 [Server] INFO ... 3 more 27.03 12:49:29 [Server] INFO Caused by: java.lang.NullPointerException 27.03 12:49:29 [Server] INFO at com.iCo6.handlers.Give.perform(Give.java:31) 27.03 12:49:29 [Server] INFO at com.iCo6.iConomy.onCommand(iConomy.java:413) 27.03 12:49:29 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 27.03 12:49:29 [Server] INFO ... 9 more
@zippolino
Thanks for your suggestion, as soon as i get some time i will work into it.
@BoomerBR
Hi BoomerBR,
awesome plugins. That is what i wanted for a long time.
I have this following idea. I would like to have a randomize option/area in the config and what it does is, instead of executing one command at a specific time, it chooses randomly one command out of a list of commands at a specific time.
Example:
--------------------CheckUpdates: true
InitialDelay: 5
CommandSchedule:
Randomize: true
--------------------So the plugin will take ONE of these 4 given commands randomly and executes it every 30 seconds.
Thank you very much!
Best regards
Zippolino
@samueli5750
Are you using PaperSpigot? This error is caused by plugin incompatibilities or your config file is messed up, try reseting it.
[02:00:30 ERROR]: Please notify author of plugin causing this execution to fix this bug! see: http://bit.ly/1oSiM6C java.lang.Throwable at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCommand(CraftServer.java:607) [patched_1.9.jar:git-Paper-552] at BoomerBR.Plugin.ConsoleScheduler.runCommand(ConsoleScheduler.java:138) [ConsoleScheduler.jar:?] at BoomerBR.Plugin.ConsoleScheduler$4.run(ConsoleScheduler.java:132) [ConsoleScheduler.jar:?] at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:58) [patched_1.9.jar:git-Paper-552] at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) [patched_1.9.jar:git-Paper-552] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [patched_1.9.jar:git-Paper-552] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_66] at java.lang.Thread.run(Unknown Source) [?:1.8.0_66] [02:00:30 INFO]: Unknown command. Type "/help" for help.
nice! thx fir the updates