The Knicks continued their Plan B on Monday of throwing money at backup players on short-term contracts to use cap space that is not going to either Kyrie Irving, Kevin Durant or Kawhi Leonard.

The team added journeyman shooting guard Wayne Ellington with a two-year, $16 million deal. The Knicks have about $9 million left of cap space but have hit the minimum payroll needed – called “the floor.”

Though they have two spots open on the 15-man roster, the Knicks can save the cap space and wait on a trade to be more flexible.

Ellington, 31, has spent 10 years bouncing around the NBA, including one season with the Nets and one month with the Knicks in the offseason. The Knicks obtained Ellington in the Tyson Chandler trade with Dallas and then dumped him to Sacramento in the Quincy Acy deal.

Ellington has gained more prominence since. He is a career 38-percent 3-point shooter and has averaged 8.2 points per game for his career.

The Knicks signed Julius Randle, Bobby Portis, Taj Gibson and Reggie Bullock on Sunday after missing out on Durant, who is headed to Brooklyn. Three of the players (Ellington, Taj Gibson, Bobby Portis) are clients of agent Mark Bartelstein, turning the Knicks’ massive cap room into a boon for his Chicago-based agency.