if(command == "abc") { if(player.Class == 4) { // They have class 4, do what the command has to do now }}
function onPlayerCommand( player, cmd, text ){ if( cmd == "abc" ) { }}