Option 1: Just don't swear. Option 2: Erase your memory. If you don't know swear words you can't swear.
I remember when I was playing skywars, I tried saying the F word, and it actually went through xD Don't know if it is still possible as that has been 3 years ago
Or just say Frick, Heck, Damn, flip, snickers, hell, heaven, and nachoes instead of the foRBIDden sWeAR wORDS !!