Maybe having a look at other Auth plugins helps?
Also note that we don’t support cracked servers… If you want to develop a two factor auth plugin, that’s fine though