mirror of
https://github.com/SoDOff-Project/sodoff-mmo.git
synced 2025-10-11 08:18:49 -07:00
use MMOServer in appsettings.json for config
and improved run.sh
This commit is contained in:
parent
82e83722da
commit
08b74957a8
3
run.sh
3
run.sh
@ -1 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
dotnet run --project src/sodoffmmo.csproj
|
dotnet run --project src/sodoffmmo.csproj
|
||||||
|
@ -15,7 +15,7 @@ internal static class Configuration {
|
|||||||
.AddJsonFile("appsettings.json", true)
|
.AddJsonFile("appsettings.json", true)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
ServerConfiguration? serverConfiguration = config.GetSection("ServerConfiguration").Get<ServerConfiguration>();
|
ServerConfiguration? serverConfiguration = config.GetSection("MMOServer").Get<ServerConfiguration>();
|
||||||
if (serverConfiguration is null)
|
if (serverConfiguration is null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1,27 +1,27 @@
|
|||||||
{
|
{
|
||||||
"ServerConfiguration": {
|
"MMOServer": {
|
||||||
"// ListenIP": "Listening IP address for the asset server, default is '*' which represents all IPv4 and IPv6 addresses",
|
"// ListenIP": "Listening IP address for the asset server, default is '*' which represents all IPv4 and IPv6 addresses",
|
||||||
"ListenIP": "*",
|
"ListenIP": "*",
|
||||||
|
|
||||||
"// Port": "Listening port number for the MMO server",
|
"// Port": "Listening port number for the MMO server",
|
||||||
"Port": 9933,
|
"Port": 9933,
|
||||||
|
|
||||||
"// EnableChat": "When true, in-game chat will be enabled",
|
"// EnableChat": "When true, in-game chat will be enabled",
|
||||||
"EnableChat": true,
|
"EnableChat": true,
|
||||||
|
|
||||||
"// FirstEventTimer": "time to start of first world event (battle ship event) after start MMO server",
|
"// FirstEventTimer": "time to start of first world event (battle ship event) after start MMO server",
|
||||||
"FirstEventTimer": 3,
|
"FirstEventTimer": 3,
|
||||||
|
|
||||||
"// EventTimer": "time between start of world events (battle ship events)",
|
"// EventTimer": "time between start of world events (battle ship events)",
|
||||||
"EventTimer": 30,
|
"EventTimer": 30,
|
||||||
|
|
||||||
"// RacingMaxPlayers": "maximum players allowed in Thunder Run Racing (no more than 6)",
|
"// RacingMaxPlayers": "maximum players allowed in Thunder Run Racing (no more than 6)",
|
||||||
"RacingMaxPlayers": 6,
|
"RacingMaxPlayers": 6,
|
||||||
|
|
||||||
"// RacingMinPlayers": "minimum players to start Thunder Run Racing",
|
"// RacingMinPlayers": "minimum players to start Thunder Run Racing",
|
||||||
"RacingMinPlayers": 2,
|
"RacingMinPlayers": 2,
|
||||||
|
|
||||||
"// AllowChaos": "disable server side exploit protection",
|
"// AllowChaos": "disable server side exploit protection",
|
||||||
"AllowChaos": false
|
"AllowChaos": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user