Example #1
0
 void OnLeft(object sender, UserEventArgs e)
 {
     if (state == GameState.Forming) {
         RemoveUser(e.User);
         e.User.Commands.RemoveAll(c => c.Parent == this);
     }
 }
Example #2
0
        void OnJoin(object sender, UserEventArgs e)
        {
            if(!initalized) {
                Initialize();
            }

            if(e.User == Creator) {
                Channel.Op(e.User.Name);
            }

            if (state == GameState.Forming && !IgnoredPlayers.Contains(e.User)) {
                AddUser(e.User);
            }

            if(players.Contains(e.User) || e.User == Creator) {
                AddCommands(e.User);
            }
        }