def on_entity_interact_result(self, data):
     """Chest protection"""
     if self.protocol.player.planet in self.protected_planets and self.protocol.player.access_level < UserLevels.ADMIN:
         self.logger.vdebug("User %s attmepted to interact on a protected planet.", self.protocol.player.name)
         name = self.protocol.player.org_name
         if name in self.player_planets[self.protocol.player.planet]:
             return True
         else:
             entity = entity_interact_result().parse(data.data)
             if entity.interaction_type == InteractionType.OPEN_CONTAINER:
                 self.logger.vdebug("User %s attmepted to open container ID %s", self.protocol.player.name, entity.target_entity_id)
                 self.logger.vdebug("This is not permitted.")
                 return False
 def on_entity_interact_result(self, data):
     """Chest protection"""
     if self.protocol.player.planet in self.protected_planets and self.protocol.player.access_level < UserLevels.ADMIN:
         self.logger.vdebug(
             "User %s attmepted to interact on a protected planet.",
             self.protocol.player.name)
         name = self.protocol.player.org_name
         if name in self.player_planets[self.protocol.player.planet]:
             return True
         else:
             entity = entity_interact_result().parse(data.data)
             if entity.interaction_type == InteractionType.OPEN_CONTAINER:
                 self.logger.vdebug(
                     "User %s attmepted to open container ID %s",
                     self.protocol.player.name, entity.target_entity_id)
                 self.logger.vdebug("This is not permitted.")
                 return False
 def on_entity_interact_result(self, data):
     """
     Chest protection
     """
     if (
             self.protocol.player.planet in self.protected_planets and
             self.protocol.player.access_level < UserLevels.ADMIN
     ):
         name = self.protocol.player.org_name
         if name in self.player_planets[self.protocol.player.planet]:
             return True
         else:
             entity = entity_interact_result().parse(data.data)
             if entity.interaction_type == InteractionType.OPEN_CONTAINER:
                 self.logger.vdebug(
                     'Player %s attmepted to open a protected container.',
                     self.protocol.player.name
                 )
                 return False