Restrict certain original commands?

#1
Is there a way to use madcommands to restrict a command not associated with madcommands such as /f to a certain world without it being overridden? I want to be able to do this because there is a glitch where if you use /f home in the wrong world, it sends you to the same coords but in the wrong world. If there isn't a way, a solution to work around this would be appreciated as well. Thank you!