For exiledMS, you can use, cm.getMap().getId() to give you the map ID then implement which map ID you want it to check.