Exemplo n.º 1
0
        public void OnBanchoMatchChangePassword(BanchoMatchChangePasswordArgs args)
        {
            if (args.Pr.ActiveMatch?.HostId != args.Pr.User.Id)
            {
                return;
            }

            args.Pr.ActiveMatch.SetPassword(args.Room.Password);
            args.Pr.ActiveMatch.Update();
        }
Exemplo n.º 2
0
        public void OnBanchoMatchChangePassword(BanchoMatchChangePasswordArgs args)
        {
            if (args.pr.JoinedRoom == null)
            {
                return;
            }
            if (args.pr.JoinedRoom.HostId != args.pr.User.Id)
            {
                return;
            }

            args.pr.JoinedRoom.SetPassword(args.room.Password);
        }