Update config

This commit is contained in:
Naruse
2025-06-14 11:18:38 +08:00
parent 6a03b39f07
commit 684eab933b
3 changed files with 10 additions and 30 deletions

View File

@@ -52,8 +52,6 @@ public class PathConfig
public class ServerOption
{
public bool EnableMission { get; set; } = false;
public string DefaultGender { get; set; } = "Woman";
public string Language { get; set; } = "EN";
public string FallbackLanguage { get; set; } = "EN";
public string[] DefaultPermissions { get; set; } = ["Admin"];

View File

@@ -2,23 +2,16 @@
"HttpServer": {
"BindAddress": "0.0.0.0",
"PublicAddress": "127.0.0.1",
"Port": 619,
"UseSSL": true
},
"Key": {
"KeyStoreFile": "FireflyDH.pfx",
"KeyStorePassword": "lethe",
"Ec2bKeyFile": "ClientSecretKey.ec2b"
"Port": 80
},
"GameServer": {
"BindAddress": "0.0.0.0",
"PublicAddress": "127.0.0.1",
"Port": 2007,
"Port": 21000,
"KcpAliveMs": 45000,
"DatabaseName": "firefly.db",
"GameServerId": "FireflyDH",
"GameServerName": "FireflyDH",
"UsePacketEncryption": true
"DatabaseName": "kiana.db",
"GameServerId": "KianaBH",
"GameServerName": "KianaBH"
},
"Path": {
"ResourcePath": "Resources",
@@ -26,23 +19,14 @@
"DatabasePath": "Config/Database",
"HandbookPath": "Config/Handbook",
"LogPath": "Config/Logs",
"KeyPath": "Config/Keys",
"DataPath": "Config/Data"
},
"ServerOption": {
"EnableMission": false,
"DefaultGender": "Woman",
"Language": "EN",
"FallbackLanguage": "EN",
"Region": "BETAOVERSEA",
"DefaultPermissions": [
"Admin"
],
"ServerBanner": {
"EnableBanner": true,
"Content": "Welcome to FireflyDH!",
"AdminContent": "Welcome to FireflyDH (Admin Access)!"
},
"ServerProfile": {
"Name": "Server",
"Uid": 80,
@@ -54,11 +38,11 @@
"DisplayAvatarLevel": 1
},
"AutoCreateUser": true,
"UseRealPassword": true,
"SavePersonalDebugFile": false,
"UseCache": true
},
"MuipServer": {
"AdminKey": "8f52aa3f-ad56-4d48-acc8-651151e4d989"
"AutoSendResponseWhenNoHandler": false,
"EnableDebug": true,
"DebugMessage": true,
"DebugDetailMessage": true,
"DebugNoHandlerPacket": true
}
}

View File

@@ -51,8 +51,6 @@ public class KianaBH
var elapsed = DateTime.Now - time;
Logger.Info(I18NManager.Translate("Server.ServerInfo.ServerStarted",
Math.Round(elapsed.TotalSeconds, 2).ToString(CultureInfo.InvariantCulture)));
if (ConfigManager.Config.ServerOption.EnableMission)
Logger.Warn(I18NManager.Translate("Server.ServerInfo.MissionEnabled"));
}
# region Exit