I've worked around this error in 1.4.3.2. I've switched for a new method some months ago, but seems that ClearLagg doesn't support it, anyway the error is fixed.
Also I want to say this. When you took over this plugin in 2014 or 2013 you made this plugin better and it was compatible with clear lagg. Clear lagg is not the problem, it's something in the coding of this plugin that is not right. P.S, I'm sorry if you think that I'm upset at you. I'm truly not, I just want this plugin to be working the same it was 3 years ago. I hope you can fix this and good luck.
Then why are you even still making this plugin then. The whole goal of this plugin was to be compatible with most plugins if not all. When this plugin was first made it was fully compatible with clear lagg. Why is it not now. Anyway you misread my claim. I said can you fix the lagg unloadchunks command. That's all. Basically I want you to make it compatible with clearlagg again just like it was 3 years ago.
@BoomerBR can you fix this
[10:27:01 WARN]: Exception in thread "Craft Scheduler Thread - 18"
[10:27:01 WARN]: org.apache.commons.lang.UnhandledException: Plugin ConsoleScheduler v1.4.3 generated an exception while executing task 75
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.bukkit.command.CommandException: Unhandled exception executing command 'lagg' in plugin ClearLag v2.8.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
at BoomerBR.Plugin.ConsoleScheduler.runCommand(ConsoleScheduler.java:138)
at BoomerBR.Plugin.ConsoleScheduler$2.run(ConsoleScheduler.java:110)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more
Caused by: java.lang.IllegalStateException: Asynchronous chunk unload!
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:14)
at org.bukkit.craftbukkit.v1_8_R3.CraftWorld.unloadChunk(CraftWorld.java:181)
at org.bukkit.craftbukkit.v1_8_R3.CraftChunk.unload(CraftChunk.java:141)
at me.minebuilders.clearlag.commands.UnloadChunksCmd.run(UnloadChunksCmd.java:28)
at me.minebuilders.clearlag.modules.CommandModule.processCmd(CommandModule.java:39)
at me.minebuilders.clearlag.CommandListener.onCommand(CommandListener.java:36)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 9 more
I get this error every time I put lagg unloadchunks in the config file. So please can you try to fix this. Every other clearlag command that is compatible with console works except this one. So please try to fix it.
Tried that. First tried plugman to reload the plugin that didn't work then I figured I would try a full restart, that didn't work either. Either way found an alternative. Thanks for the response though.
The first command repeats itself every 30 seconds even if I change the time. It just never stops. All I have done is load the plugin change the time interval and the command and it still does 30 seconds no matter what I do.
Seems that your version is a bit outdated, this can cause this kind of errors, but i'm afraid i can't help you, because this error is not being caused by ConsoleScheduler, it's been caused by your KOTH plugin (Maybe an update solve your problem).
@ZombiesM16
I've worked around this error in 1.4.3.2. I've switched for a new method some months ago, but seems that ClearLagg doesn't support it, anyway the error is fixed.
Also I want to say this. When you took over this plugin in 2014 or 2013 you made this plugin better and it was compatible with clear lagg. Clear lagg is not the problem, it's something in the coding of this plugin that is not right. P.S, I'm sorry if you think that I'm upset at you. I'm truly not, I just want this plugin to be working the same it was 3 years ago. I hope you can fix this and good luck.
@BoomerBR
Then why are you even still making this plugin then. The whole goal of this plugin was to be compatible with most plugins if not all. When this plugin was first made it was fully compatible with clear lagg. Why is it not now. Anyway you misread my claim. I said can you fix the lagg unloadchunks command. That's all. Basically I want you to make it compatible with clearlagg again just like it was 3 years ago.
@ZombiesM16
I wish i could help you but i can't, because this error is not being caused by ConsoleScheduler, it's been caused by clearlagg.
@BoomerBR can you fix this [10:27:01 WARN]: Exception in thread "Craft Scheduler Thread - 18" [10:27:01 WARN]: org.apache.commons.lang.UnhandledException: Plugin ConsoleScheduler v1.4.3 generated an exception while executing task 75 at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.bukkit.command.CommandException: Unhandled exception executing command 'lagg' in plugin ClearLag v2.8.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) at BoomerBR.Plugin.ConsoleScheduler.runCommand(ConsoleScheduler.java:138) at BoomerBR.Plugin.ConsoleScheduler$2.run(ConsoleScheduler.java:110) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more Caused by: java.lang.IllegalStateException: Asynchronous chunk unload! at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:14) at org.bukkit.craftbukkit.v1_8_R3.CraftWorld.unloadChunk(CraftWorld.java:181) at org.bukkit.craftbukkit.v1_8_R3.CraftChunk.unload(CraftChunk.java:141) at me.minebuilders.clearlag.commands.UnloadChunksCmd.run(UnloadChunksCmd.java:28) at me.minebuilders.clearlag.modules.CommandModule.processCmd(CommandModule.java:39) at me.minebuilders.clearlag.CommandListener.onCommand(CommandListener.java:36) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 9 more I get this error every time I put lagg unloadchunks in the config file. So please can you try to fix this. Every other clearlag command that is compatible with console works except this one. So please try to fix it.
@marubal21
ATM not, but i'm planing some new features and this one can be included.
Does it allow to set a "at the end of the month" interval. Or on the 1st of every month?
@BoomerBR
Tried that. First tried plugman to reload the plugin that didn't work then I figured I would try a full restart, that didn't work either. Either way found an alternative. Thanks for the response though.
@EqlipseD
After change the repeat time you need to restart the server, the reload command is not working for this, i'm working on a fix
The first command repeats itself every 30 seconds even if I change the time. It just never stops. All I have done is load the plugin change the time interval and the command and it still does 30 seconds no matter what I do.
@k3ldon
Seems that your version is a bit outdated, this can cause this kind of errors, but i'm afraid i can't help you, because this error is not being caused by ConsoleScheduler, it's been caused by your KOTH plugin (Maybe an update solve your problem).
@BoomerBR
nope
this: https://www.spigotmc.org/resources/automated-koth-plugin-simple-and-efficient-revamped.6832/
@k3ldon
Wich KOTH do you use?
http://dev.bukkit.org/bukkit-plugins/king-of-the-hill/
or
http://dev.bukkit.org/bukkit-plugins/koth/
@BoomerBR
@k3ldon
What is the version of your server?
@Bestbeastxd
I'm planning tons of new features, this one can be added, but can take a little time because i'm very busy this last days
could you please add a command to schedule a cmd command in a period of time?
still i have bugs with command2, command1 work fine...
@MayorOfBukkit
Already using. i've only changed:
scheduleAsyncRepeatingTask to runTaskTimerAsynchronously
and
scheduleAsyncDelayedTask to runTaskLaterAsynchronously
The older methods are deprecated.
Use Async, if certain commands are run have it switch to Sync.
@k3ldon @MasterMithrandir
Try the newest version