Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }