This article introduces the plug-in version of the sample code in the "Allow only 1 user for User Selection fields" article. The plug-in places restrictions on the specified User selection field, so that only 1 user can be saved in the field.
This article describes what each file in the plug-in does, and how the files are structured.
Please use this article as reference to build your own plug-ins.