@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
   public void onPlayerDamageEvent (EntityDamageEvent event)
   {
      if(event.getEntity() instanceof Player)
      {
         Player p = (Player) event.getEntity();

         if(playersInSM.contains(p.getName())) //check if player is in ServiceMode
         {
            //if(event.getCause() == event.) // optional: look what caused the damage. (to not have a complete god mode)
            event.setCancelled(true); // if yes, dont apply damage (e.g. from falling into lava or creeper explosion)
         }
      }      
   }