1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-05-30 13:34:05 +02:00
Minecraft-Phantom-Panel/Agent/Phantom.Agent.Minecraft/Properties/ServerProperties.cs

16 lines
457 B
C#

using Phantom.Agent.Minecraft.Java;
namespace Phantom.Agent.Minecraft.Properties;
public sealed record ServerProperties(
ushort ServerPort,
ushort RconPort,
bool EnableRcon = true
) {
internal void SetTo(JavaPropertiesFileEditor properties) {
MinecraftServerProperties.ServerPort.Set(properties, ServerPort);
MinecraftServerProperties.RconPort.Set(properties, RconPort);
MinecraftServerProperties.EnableRcon.Set(properties, EnableRcon);
}
}