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(); }
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); }