This tutorial will explain from nothing how to build/create the CoreProtect plugin or 1.21 from it's source code on GitHub.
I am assuming you don't know anything and don't have anything installed and are using a Windows device.
Watch these tutorial videos (very short).
- You must use Java JDK 21. Download here.