mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-25 07:42:58 +01:00
16 lines
438 B
C#
16 lines
438 B
C#
using Kajabity.Tools.Java;
|
|
|
|
namespace Phantom.Agent.Minecraft.Properties;
|
|
|
|
public sealed record ServerProperties(
|
|
ushort ServerPort,
|
|
ushort RconPort,
|
|
bool EnableRcon = true
|
|
) {
|
|
internal void SetTo(JavaProperties properties) {
|
|
MinecraftServerProperties.ServerPort.Set(properties, ServerPort);
|
|
MinecraftServerProperties.RconPort.Set(properties, RconPort);
|
|
MinecraftServerProperties.EnableRcon.Set(properties, EnableRcon);
|
|
}
|
|
}
|