Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
maca134 committed Jun 22, 2015
0 parents commit 6765315
Show file tree
Hide file tree
Showing 163 changed files with 12,779 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.hg*
build/nant-0.92/*
build/release/*
build/app/*
src/packages/*
src/Plugins/CCG/*
2 changes: 2 additions & 0 deletions build/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nant-0.92\nant.exe
pause
2 changes: 2 additions & 0 deletions build/clean.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nant-0.92\nant.exe clean
pause
103 changes: 103 additions & 0 deletions build/nant.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<project name="MBCon Build" default="release" basedir=".">
<property name="configuration" value="Release" />
<property name="dir.source" value="${project::get-base-directory()}\..\src" />
<property name="dir.app" value="${project::get-base-directory()}\app" />
<property name="dir.release" value="${project::get-base-directory()}\release" />
<property name="dir.pluginsource" value="${project::get-base-directory()}\..\src\Plugins" />
<property name="dir.plugins" value="${project::get-base-directory()}\app\plugins" />

<property name="versionString" value="0-0-0-0"/>

<target name="release" depends="set.version, clean, build, collect, plugintemplate, zip" />

<target name="setVersionString">
<loadfile file="versioninfo.txt" property="versionString" />
<echo message= "Old Version: ${versionString}" />
<property name="major" value="${version::get-major(version::parse(versionString))}" />
<property name="minor" value="${version::get-minor(version::parse(versionString))}" />
<property name="build" value="${version::get-build(version::parse(versionString))}" />
<property name="revision" value="${version::get-revision(version::parse(versionString))}" />
<property name="versionString" value="${major}.${minor}.${build}.${revision}"/>
</target>

<target name="set.version" depends="setVersionString" description="generates the version number">
<echo message="Setting the build version to ${versionString}..." />
<attrib file="${dir.source}\MBCon\Properties\AssemblyInfo.cs" readonly="false" />
<asminfo output="${dir.source}\MBCon\Properties\AssemblyInfo.cs" language="CSharp">
<imports>
<import namespace="System" />
<import namespace="System.Reflection" />
</imports>
<attributes>
<attribute type="AssemblyTitleAttribute" value="MBCon" />
<attribute type="AssemblyCompanyAttribute" value="Maca134" />
<attribute type="AssemblyProductAttribute" value="MBCon" />
<attribute type="AssemblyCopyrightAttribute" value="Copyright 2015" />
<attribute type="AssemblyVersionAttribute" value="${versionString}" />
<attribute type="AssemblyFileVersionAttribute" value="${versionString}" />
</attributes>
</asminfo>
<attrib file="${dir.source}\MBCon\Properties\AssemblyInfo.cs" readonly="true" />
</target>

<target name="clean" description="Delete all previously compiled binaries.">
<delete>
<fileset basedir="${dir.source}">
<include name="**/bin/**" />
<include name="**/obj/**" />
<include name="**/*.suo" />
<include name="**/*.user" />
</fileset>
</delete>
<delete dir="${dir.app}" failonerror="false" />
<mkdir dir="${dir.app}" />
<mkdir dir="${dir.release}" />
</target>

<target name="build" description="">
<msbuild project="${dir.source}\MBCon.sln">
<property name="Configuration" value="${configuration}"/>
</msbuild>
</target>

<target name="collect" description="">
<copy todir="${dir.app}">
<fileset basedir="${dir.source}/MBCon/bin/${configuration}">
<include name="**/*" />
<exclude name="**/*.pdb" />
<exclude name="**/*.xml" />
</fileset>
</copy>
<mkdir dir="${dir.plugins}" />

<foreach item="Folder" in="${dir.pluginsource}" property="foldername">
<mkdir dir="${dir.plugins}\${path::get-file-name(foldername)}" />
<copy todir="${dir.plugins}\${path::get-file-name(foldername)}" includeemptydirs="false">
<fileset basedir="${foldername}/bin/${configuration}">
<include name="**/*" />
<exclude name="**/*.pdb" />
<exclude name="**/*.xml" />
</fileset>
</copy>
</foreach>
</target>

<target name="plugintemplate" description="">
<zip zipfile="${dir.app}\pluginTemplate.zip">
<fileset basedir="${dir.source}\MBConTestPluginVSTemplate" >
<include name="**/*" />
</fileset>
</zip>
</target>

<target name="zip" description="">
<delete dir="${dir.plugins}\CCG" failonerror="false" />
<delete dir="${dir.plugins}\TestPlugin" failonerror="false" />
<zip zipfile="${dir.release}/mbcon-${versionString}.zip">
<fileset basedir="${dir.app}" >
<include name="**/*" />
</fileset>
</zip>
</target>

</project>
1 change: 1 addition & 0 deletions build/versioninfo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0.1
23 changes: 23 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# MBCon #

MBCon is a C# (.NET) [BattlEye](http://www.battleye.com/) 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](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=95G5FZ8PSW63W) or becoming a [Patreon](https://www.patreon.com/maca134).
Loading

0 comments on commit 6765315

Please sign in to comment.