This is a small plugin I made to lock characters when enabled. Simply edit the config variable 'lock_characters' and set it to true when you need to avoid charswapping.
The plugin is used only during sweeps or other special events when you need people to be unable to charswitch to avoid roleplay.
By the way... an upvote really helps. C: