Well there are well-known noncommercial clauses about
redistribution of software. But this license is about restricting third-party modifications, like plugins, which don't contain copyrighted code, but do link to it and target its API. So yes I'm asking if that's enforceable, and what type of law allows for that (contract or copyright?).
Or did you mean noncommercial use, as in evaluation licenses?
(edit: several edits because I am confused)