GithubHelp home page GithubHelp logo

maca134 / mbcon Goto Github PK

View Code? Open in Web Editor NEW
17.0 8.0 19.0 115 KB

A simple app to manage various tasks via rcon for ARMA servers.

Batchfile 0.02% C# 76.90% HTML 4.71% JavaScript 13.37% CSS 4.99%

mbcon's Introduction

MBCon - Download

MBCon is a C# (.NET) BattlEye RCON client for ARMA 2/3 servers. It uses a simple plugin system to make it easy to extend. (BattleNET is included at the moment as there is a missing BE command, this will be changed to nuget soon).

Included Plugins

  • Console: Simply outputs stuff to a console window.
  • Logger: Logs various BE events to logs.
  • PlayerCheck: Can be used as a "global" bans list or a whitelister, using a file, http request or mysql database.
  • BEFilterMonitor: Watches bans.txt and filters and reloads them when changed.
  • RestartMessage: A simple plugin to do restart messages.
  • ScheduledTasks: Perform BE commands at certain times.
  • SimpleMessages: Sends messages to server at certain intervals.
  • WebLogger: Sends logs to a URL.
  • WebRcon: A very experimental plugin to allow access to a web-based RCON client.

Basic Usage

Edit the main config.ini, pointing to the active servers be config and start mbcon.exe.

Donate

If you like this app and use it, please consider donating via PayPal or becoming a Patreon.

mbcon's People

Contributors

lexthegreat avatar maca134 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mbcon's Issues

Instruction Ambiguity

The beauty of language is that it can be clear and concise, removing all question and ambiguity. The config.ini states,

[Admins]
; Define admins as guid = level
7b313c3a4a8f13fa07f8f91427dd6674 = 100

Yet in no way does it explain WTF this GUID comes from. It's NOT a Steam ID... it's NOT an ARMA Player ID, WTF is it?

How simple it might have been just to be clear.

Thanks.

Global bans

When a player is banned using either an rcon client or the banked in web rcon client, that the ban is also added to a MySQL table automatically (config option obviously) or something along those lines.

Would be very handy for server owners with multple boxes who want to share the same ban list across the network and could work very well with the included PlayerCheck plugin.

Regards.

Unable to connect

Fresh install of 0.0.0.2, changed the ip address to local. unable to connect.

MBCon - by maca134

[email protected]

Config file found, continuing to load...
Loading BEClient...
Loading Plugins...
Plugin BEFilterMonitor loading failed: BEFilterMonitor has been disabled
Plugin Logger loading failed: Logger has been disabled
Plugin PlayerCheck loading failed: PlayerCheck has been disabled
Plugin ScheduledTasks loading failed: ScheduledTasks has been disabled
Plugin SimpleMessages loading failed: SimpleMessages has been disabled
Plugin WebLogger loading failed: WebLogger has been disabled
Plugin WebRcon loading failed: WebRcon has been disabled
Connecting to server...
Sending Message: Server will restart in 1 hour, 59 minutes.
Sending Message: Server will restart in 1 hour, 59 minutes.
Sending Message: Server will restart in 1 hour, 59 minutes.
Sending Message: Server will restart in 1 hour, 59 minutes.
Sending Message: Server will restart in 1 hour, 59 minutes.
Connection to 127.0.0.1:2302 failed: Invalid login details!
Failed to connect to server. Attempt 1/5
Connection to 127.0.0.1:2302 failed: Invalid login details!
Failed to connect to server. Attempt 2/5
Connection to 127.0.0.1:2302 failed: Invalid login details!
Failed to connect to server. Attempt 3/5
Connection to 127.0.0.1:2302 failed: Invalid login details!
Failed to connect to server. Attempt 4/5
Connection to 127.0.0.1:2302 failed: Invalid login details!
Failed to connect to server. Attempt 5/5
Unloading MBCon
Unloading Plugins
Unloading Console
Unloading RestartMessages
BE Disconnected

Feature Request

Good day

Firstly I want to say Great Job on this tool I really like it easy to setup and get working.

I would like to request 3 possible features

A way to schedule dynamic messages that runs at specific times of the day, the reason i ask for this is that global chat is often missed.

On the webcon side a way to send server commands like #shutdown I know webcon is still a new feature but that would be great.

Also I'm having issues with mbcon closing when my server restarts and having to reopen it manually or using a script that monitors my Arma process, maby build in some kind of timer where mbcon waits a min before trying to reconnect with 5 tries if after 5 tries it cannot connect then close that gives the server 5 min to come back up and prevent mbcon from closing.

Thanks and Regards keep up the good work.

Can't read rcon password

Trying to set up to evaluate your software but get a msg saying:

MBCon - by maca134

[email protected]

Config file found, continuing to load...
Unloading MBCon

ERROR: Error Loading Settings: Error reading BEServer.cfg: Could not find rcon password in BEServer.cfg.

Then it exits, The BEPAth is set and are correct. BEServer.cfg is present at given location and works fine with BEC etc.

Issues while trying to connect

Heya Maca,

I Believe ive set up everything properly.
Put in the proper IP and port, and directorys in config.ini aswell as done the proper configurations in my desired plugins - Restartmessages and ScheduledTasks

Yet when launching the .exe i get the following while using local IP and both 2302 (port i use) and 2303
http://pastebin.com/ydRBAz9x

Im obviously doing somthing wrong, maybe you can point me in the right direction ?

(Using this for my Arma3 Epochserver if that makes any difference)

BE config ? Where to point for remote Linux Server ?

I've Solved the first issue with BE Config already.

Now my problem is: None of the plugins actually load :(
Log Below:

MBCon - by maca134

[email protected]

Config file found, continuing to load...
Loading BEClient...
Loading Plugins...
Error loading plugin BEFilterMonitor: Could not load file or assembly 'BEFilterMonitor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) - System.IO.FileLoadException: Could not load file or assembly 'BEFilterMonitor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'BEFilterMonitor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at MBCon.classes.PluginManager..ctor(String pluginPath)

Error loading plugin Console: Could not load file or assembly 'Console, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) - System.IO.FileLoadException: Could not load file or assembly 'Console, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'Console, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at MBCon.classes.PluginManager..ctor(String pluginPath)

Error loading plugin Logger: Could not load file or assembly 'Logger, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) - System.IO.FileLoadException: Could not load file or assembly 'Logger, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'Logger, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at MBCon.classes.PluginManager..ctor(String pluginPath)

Error loading plugin PlayerCheck: Could not load file or assembly 'PlayerCheck, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) - System.IO.FileLoadException: Could not load file or assembly 'PlayerCheck, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'PlayerCheck, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at MBCon.classes.PluginManager..ctor(String pluginPath)

Error loading plugin RestartMessages: Could not load file or assembly 'RestartMessages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) - System.IO.FileLoadException: Could not load file or assembly 'RestartMessages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'RestartMessages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at MBCon.classes.PluginManager..ctor(String pluginPath)

Error loading plugin ScheduledTasks: Could not load file or assembly 'ScheduledTasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) - System.IO.FileLoadException: Could not load file or assembly 'ScheduledTasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'ScheduledTasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at MBCon.classes.PluginManager..ctor(String pluginPath)

Error loading plugin SimpleMessages: Could not load file or assembly 'SimpleMessages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) - System.IO.FileLoadException: Could not load file or assembly 'SimpleMessages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'SimpleMessages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at MBCon.classes.PluginManager..ctor(String pluginPath)

Error loading plugin WebLogger: Could not load file or assembly 'WebLogger, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) - System.IO.FileLoadException: Could not load file or assembly 'WebLogger, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'WebLogger, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at MBCon.classes.PluginManager..ctor(String pluginPath)

Error loading plugin WebRcon: Could not load file or assembly 'WebRcon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) - System.IO.FileLoadException: Could not load file or assembly 'WebRcon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'WebRcon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at MBCon.classes.PluginManager..ctor(String pluginPath)

Connecting to server...
Connected to 94.23.200.48:4302
Unloading MBCon
Unloading Plugins

BE Disconnected

Any help ? :D

Kind Regards,
Pasha
Kuro Raijin - In-game

Execute a Batch File from Scheduler

Hey Maca,

I would like to excute a restart Batch File in schedule.json, I tried the BEC method but it doesnt seem to work. What would be the best way to restart the server with the restart messages with MBcon ?

Issue with using #shutdown as a scheduled task

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.