You can use the Plugin LuckyPerms and with the command /lp user "USERNAME" permission set plugin/mod.command true
"USERNAME" =username of the player which should have the permission to run this command
plugin/mod.command= name of the plugin or the mod, then a . and after it the command which...