mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-23 19:42:51 +01:00
18 lines
566 B
C#
18 lines
566 B
C#
using Phantom.Agent.Minecraft.Java;
|
|
|
|
namespace Phantom.Agent.Minecraft.Properties;
|
|
|
|
public sealed record ServerProperties(
|
|
ushort ServerPort,
|
|
ushort RconPort,
|
|
bool EnableRcon = true,
|
|
bool SyncChunkWrites = false
|
|
) {
|
|
internal void SetTo(JavaPropertiesFileEditor properties) {
|
|
MinecraftServerProperties.ServerPort.Set(properties, ServerPort);
|
|
MinecraftServerProperties.RconPort.Set(properties, RconPort);
|
|
MinecraftServerProperties.EnableRcon.Set(properties, EnableRcon);
|
|
MinecraftServerProperties.SyncChunkWrites.Set(properties, SyncChunkWrites);
|
|
}
|
|
}
|