public override void Init(ITorchBase torch) { base.Init(torch); // Load up the configuration string path = Path.Combine(StoragePath, "Economy.Markets.cfg"); Log.Info($"Attempting to load config from {path}"); _config = Persistent <EconomyMarketConfig> .Load(path); Instance = this; }
public EconomyMarketsControl(EconomyMarketsPlugin plugin) : this() { Plugin = plugin; DataContext = plugin.Config; }