-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with using #shutdown as a scheduled task #7
Comments
I really wish I knew C# .NET, I would gladly fix this myself. Anyone at all know how to fix the errors from ScheduledTasks? |
I receive this error when trying to do the ScheduledTask "#shutdown" in debug mode. Config file found, continuing to load... Plugin PlayerCheck loading failed: PlayerCheck has been disabledScheduled TasksTask 1 Plugin SimpleMessages loading failed: SimpleMessages has been disabled |
When I am trying to use #shutdown as a scheduled task I am getting the following error:
Sending Message: Server with automatically restart in 3 minutes.
RCon admin #1: (Global) Server with automatically restart in 3 minutes.
Sending Message: Server with automatically restart in 2 minutes.
RCon admin #1: (Global) Server with automatically restart in 2 minutes.
Sending Message: Server with automatically restart in 1 minute.
Unhandled Exception: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index - at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at RestartMessages.RestartMessages.TaskMonitor()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
RCon admin #1: (Global) Server with automatically restart in 1 minute.
Here is my Schedule.json:
[
{
"start": "10800",
"interval": "10800",
"loop": "1",
"cmd": "#shutdown"
}
]
Any ideas?
The text was updated successfully, but these errors were encountered: