Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public EconomyMarketsControl(EconomyMarketsPlugin plugin) : this()
 {
     Plugin      = plugin;
     DataContext = plugin.Config;
 }