public void OnPluginLoaded(ICommandManager CommandManager, IMinecraftHandler mc) { this.mc = mc; CommandManager.RegisterCommand("lotto", new CommandLotto(mc)); CommandManager.RegisterCommand("jackpot", new CommandJackpot(mc)); ConfigLotto.ConfigFolder = Path.GetDirectoryName(startupPath) + Path.DirectorySeparatorChar; LottoUserCollection.Load().Save(); config = ConfigLotto.Load(); config.Save(); users = UserCollectionSingletone.GetInstance(); lottoEnabled = true; lottoThread = new Thread(new ThreadStart(LottoThread)); lottoThread.Start(); }
public void OnPluginLoaded(ICommandManager CommandManager,IMinecraftHandler mc) { this.mc = mc; CommandManager.RegisterCommand("lotto", new CommandLotto(mc)); CommandManager.RegisterCommand("jackpot", new CommandJackpot(mc)); ConfigLotto.ConfigFolder = Path.GetDirectoryName(startupPath) + Path.DirectorySeparatorChar; LottoUserCollection.Load().Save(); config = ConfigLotto.Load(); config.Save(); users = UserCollectionSingletone.GetInstance(); lottoEnabled = true; lottoThread = new Thread(new ThreadStart(LottoThread)); lottoThread.Start(); }