1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-08-20 22:49:50 +02:00
Files

19 lines
417 B
C#

using Kajabity.Tools.Java;
namespace Phantom.Agent.Minecraft.Properties;
abstract class MinecraftServerProperty<T> {
private readonly string key;
protected MinecraftServerProperty(string key) {
this.key = key;
}
protected abstract T Read(string value);
protected abstract string Write(T value);
public void Set(JavaProperties properties, T value) {
properties.SetProperty(key, Write(value));
}
}