Add addtional server info
This commit is contained in:
@ -145,7 +145,11 @@ namespace RageCoop.Server
|
|||||||
"\"name\": \"" + Settings.Name + "\", " +
|
"\"name\": \"" + Settings.Name + "\", " +
|
||||||
"\"version\": \"" + _compatibleVersion.Replace("_", ".") + "\", " +
|
"\"version\": \"" + _compatibleVersion.Replace("_", ".") + "\", " +
|
||||||
"\"players\": \"" + MainNetServer.ConnectionsCount + "\", " +
|
"\"players\": \"" + MainNetServer.ConnectionsCount + "\", " +
|
||||||
"\"maxPlayers\": \"" + Settings.MaxPlayers + "\"" +
|
"\"maxPlayers\": \"" + Settings.MaxPlayers + "\", " +
|
||||||
|
"\"description\": \"" + Settings.Description + "\", " +
|
||||||
|
"\"website\": \"" + Settings.Website + "\", " +
|
||||||
|
"\"gameMode\": \"" + Settings.GameMode + "\", " +
|
||||||
|
"\"language\": \"" + Settings.Language + "\"" +
|
||||||
" }";
|
" }";
|
||||||
HttpResponseMessage response = null;
|
HttpResponseMessage response = null;
|
||||||
try
|
try
|
||||||
|
@ -9,27 +9,52 @@
|
|||||||
/// Port to listen for incoming connections
|
/// Port to listen for incoming connections
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Port { get; set; } = 4499;
|
public int Port { get; set; } = 4499;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Maximum number of players on this server
|
/// Maximum number of players on this server
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxPlayers { get; set; } = 32;
|
public int MaxPlayers { get; set; } = 32;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Maximum latency allowed for a client, a client will be kicked if it's latency it's higher than this value
|
/// Maximum latency allowed for a client, a client will be kicked if it's latency it's higher than this value
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxLatency { get; set; } = 500;
|
public int MaxLatency { get; set; } = 500;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The server name to be shown on master server
|
/// The server name to be shown on master server
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Name { get; set; } = "RAGECOOP server";
|
public string Name { get; set; } = "RAGECOOP server";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The website address to be shown on master server
|
||||||
|
/// </summary>
|
||||||
|
public string Website { get; set; } = "https://ragecoop.online/";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The description to be shown on master server
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; } = "RAGECOOP server";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The game mode to be shown on master server
|
||||||
|
/// </summary>
|
||||||
|
public string GameMode { get; set; } = "FreeRoam";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The language to be shown on master server
|
||||||
|
/// </summary>
|
||||||
|
public string Language { get; set; } = "English";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The message to send when a client connected (not visible to others)
|
/// The message to send when a client connected (not visible to others)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string WelcomeMessage { get; set; } = "Welcome on this server :)";
|
public string WelcomeMessage { get; set; } = "Welcome on this server :)";
|
||||||
// public bool HolePunch { get; set; } = true;
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether or not to announce this server so it'll appear on server list.
|
/// Whether or not to announce this server so it'll appear on server list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool AnnounceSelf { get; set; } = false;
|
public bool AnnounceSelf { get; set; } = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Master server address, mostly doesn't need to be changed.
|
/// Master server address, mostly doesn't need to be changed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,10 +64,12 @@
|
|||||||
/// See <see cref="Core.Logger.LogLevel"/>.
|
/// See <see cref="Core.Logger.LogLevel"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int LogLevel { get; set; }=2;
|
public int LogLevel { get; set; }=2;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// NPC data won't be sent to a player if their distance is greater than this value. -1 for unlimited.
|
/// NPC data won't be sent to a player if their distance is greater than this value. -1 for unlimited.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float NpcStreamingDistance { get; set; } = 500 ;
|
public float NpcStreamingDistance { get; set; } = 500 ;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Player's data won't be sent to another player if their distance is greater than this value. -1 for unlimited.
|
/// Player's data won't be sent to another player if their distance is greater than this value. -1 for unlimited.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Reference in New Issue
Block a user