diff --git a/SlipeServer.Server/MtaServer.cs b/SlipeServer.Server/MtaServer.cs
index 343feb4c..a2f3fa28 100644
--- a/SlipeServer.Server/MtaServer.cs
+++ b/SlipeServer.Server/MtaServer.cs
@@ -66,6 +66,12 @@ public class MtaServer
///
public string MapName { get; set; } = "unknown";
+ ///
+ /// Clients with a lower version will not be allowed to connect.
+ /// See:
+ ///
+ public string MinClientVersion { get; set; } = "1.6.0-9.22789.0";
+
///
/// Current server password, to be entered when connecting
///
diff --git a/SlipeServer.Server/Resources/Resource.cs b/SlipeServer.Server/Resources/Resource.cs
index cb6a84f9..6573af06 100644
--- a/SlipeServer.Server/Resources/Resource.cs
+++ b/SlipeServer.Server/Resources/Resource.cs
@@ -28,6 +28,7 @@ public class Resource
public string Name { get; }
public string Path { get; }
public bool IsOopEnabled { get; set; }
+ public string MinClientVersion { get; set; }
public Resource(
MtaServer server,
@@ -55,6 +56,7 @@ public Resource(
}.AssociateWith(server);
this.Exports = new List();
+ this.MinClientVersion = server.MinClientVersion;
}
public void Start()
@@ -75,7 +77,7 @@ public void Stop()
public void StartFor(Player player)
{
- new ResourceStartPacket(this.Name, this.NetId, this.Root.Id, this.DynamicRoot.Id, (ushort)this.SanitisedNoClientScripts.Count, null, null, this.IsOopEnabled, this.PriorityGroup, this.Files, this.Exports)
+ new ResourceStartPacket(this.Name, this.NetId, this.Root.Id, this.DynamicRoot.Id, (ushort)this.SanitisedNoClientScripts.Count, null, this.MinClientVersion, this.IsOopEnabled, this.PriorityGroup, this.Files, this.Exports)
.SendTo(player);
if (this.SanitisedNoClientScripts.Any())