Control Module - Protection - Controls protected entities
utils.global |
utils.event |
config.protection |
expcore.roles |
on_player_mined_protected | When a player mines a protected entity |
on_repeat_violation | When a player repeatedly mines protected entities |
EntityProtection.add_entity(entity) | Add an entity to the protected list |
EntityProtection.remove_entity(entity) | Remove an entity from the protected list |
EntityProtection.get_entities(surface) | Get all protected entities on a surface |
EntityProtection.is_entity_protected(entity) | Check if an entity is protected |
EntityProtection.add_area(surface, area) | Add an area to the protected list |
EntityProtection.remove_area(surface, area) | Remove an area from the protected list |
EntityProtection.get_areas(surface) | Get all protected areas on a surface |
EntityProtection.is_position_protected(surface, position) | Check if an entity is protected |
When a player mines a protected entity
Event Parameters:When a player repeatedly mines protected entities
Event Parameters:Add an entity to the protected list
Parameters:Remove an entity from the protected list
Parameters:Get all protected entities on a surface
Parameters: