Doing it on code is not exactly "easy" like making it 1 command line, it needs a lot of modifications, so you can check the Disguisecraft source code to guide yourself, or just simply use the plugin