mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 13:24:34 +01:00
Update config
This commit is contained in:
@@ -52,8 +52,6 @@ public class PathConfig
|
|||||||
|
|
||||||
public class ServerOption
|
public class ServerOption
|
||||||
{
|
{
|
||||||
public bool EnableMission { get; set; } = false;
|
|
||||||
public string DefaultGender { get; set; } = "Woman";
|
|
||||||
public string Language { get; set; } = "EN";
|
public string Language { get; set; } = "EN";
|
||||||
public string FallbackLanguage { get; set; } = "EN";
|
public string FallbackLanguage { get; set; } = "EN";
|
||||||
public string[] DefaultPermissions { get; set; } = ["Admin"];
|
public string[] DefaultPermissions { get; set; } = ["Admin"];
|
||||||
|
|||||||
@@ -2,23 +2,16 @@
|
|||||||
"HttpServer": {
|
"HttpServer": {
|
||||||
"BindAddress": "0.0.0.0",
|
"BindAddress": "0.0.0.0",
|
||||||
"PublicAddress": "127.0.0.1",
|
"PublicAddress": "127.0.0.1",
|
||||||
"Port": 619,
|
"Port": 80
|
||||||
"UseSSL": true
|
|
||||||
},
|
|
||||||
"Key": {
|
|
||||||
"KeyStoreFile": "FireflyDH.pfx",
|
|
||||||
"KeyStorePassword": "lethe",
|
|
||||||
"Ec2bKeyFile": "ClientSecretKey.ec2b"
|
|
||||||
},
|
},
|
||||||
"GameServer": {
|
"GameServer": {
|
||||||
"BindAddress": "0.0.0.0",
|
"BindAddress": "0.0.0.0",
|
||||||
"PublicAddress": "127.0.0.1",
|
"PublicAddress": "127.0.0.1",
|
||||||
"Port": 2007,
|
"Port": 21000,
|
||||||
"KcpAliveMs": 45000,
|
"KcpAliveMs": 45000,
|
||||||
"DatabaseName": "firefly.db",
|
"DatabaseName": "kiana.db",
|
||||||
"GameServerId": "FireflyDH",
|
"GameServerId": "KianaBH",
|
||||||
"GameServerName": "FireflyDH",
|
"GameServerName": "KianaBH"
|
||||||
"UsePacketEncryption": true
|
|
||||||
},
|
},
|
||||||
"Path": {
|
"Path": {
|
||||||
"ResourcePath": "Resources",
|
"ResourcePath": "Resources",
|
||||||
@@ -26,23 +19,14 @@
|
|||||||
"DatabasePath": "Config/Database",
|
"DatabasePath": "Config/Database",
|
||||||
"HandbookPath": "Config/Handbook",
|
"HandbookPath": "Config/Handbook",
|
||||||
"LogPath": "Config/Logs",
|
"LogPath": "Config/Logs",
|
||||||
"KeyPath": "Config/Keys",
|
|
||||||
"DataPath": "Config/Data"
|
"DataPath": "Config/Data"
|
||||||
},
|
},
|
||||||
"ServerOption": {
|
"ServerOption": {
|
||||||
"EnableMission": false,
|
|
||||||
"DefaultGender": "Woman",
|
|
||||||
"Language": "EN",
|
"Language": "EN",
|
||||||
"FallbackLanguage": "EN",
|
"FallbackLanguage": "EN",
|
||||||
"Region": "BETAOVERSEA",
|
|
||||||
"DefaultPermissions": [
|
"DefaultPermissions": [
|
||||||
"Admin"
|
"Admin"
|
||||||
],
|
],
|
||||||
"ServerBanner": {
|
|
||||||
"EnableBanner": true,
|
|
||||||
"Content": "Welcome to FireflyDH!",
|
|
||||||
"AdminContent": "Welcome to FireflyDH (Admin Access)!"
|
|
||||||
},
|
|
||||||
"ServerProfile": {
|
"ServerProfile": {
|
||||||
"Name": "Server",
|
"Name": "Server",
|
||||||
"Uid": 80,
|
"Uid": 80,
|
||||||
@@ -54,11 +38,11 @@
|
|||||||
"DisplayAvatarLevel": 1
|
"DisplayAvatarLevel": 1
|
||||||
},
|
},
|
||||||
"AutoCreateUser": true,
|
"AutoCreateUser": true,
|
||||||
"UseRealPassword": true,
|
|
||||||
"SavePersonalDebugFile": false,
|
"SavePersonalDebugFile": false,
|
||||||
"UseCache": true
|
"AutoSendResponseWhenNoHandler": false,
|
||||||
},
|
"EnableDebug": true,
|
||||||
"MuipServer": {
|
"DebugMessage": true,
|
||||||
"AdminKey": "8f52aa3f-ad56-4d48-acc8-651151e4d989"
|
"DebugDetailMessage": true,
|
||||||
|
"DebugNoHandlerPacket": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -51,8 +51,6 @@ public class KianaBH
|
|||||||
var elapsed = DateTime.Now - time;
|
var elapsed = DateTime.Now - time;
|
||||||
Logger.Info(I18NManager.Translate("Server.ServerInfo.ServerStarted",
|
Logger.Info(I18NManager.Translate("Server.ServerInfo.ServerStarted",
|
||||||
Math.Round(elapsed.TotalSeconds, 2).ToString(CultureInfo.InvariantCulture)));
|
Math.Round(elapsed.TotalSeconds, 2).ToString(CultureInfo.InvariantCulture)));
|
||||||
if (ConfigManager.Config.ServerOption.EnableMission)
|
|
||||||
Logger.Warn(I18NManager.Translate("Server.ServerInfo.MissionEnabled"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# region Exit
|
# region Exit
|
||||||
|
|||||||
Reference in New Issue
Block a user