Full automatic rule based protection system for mine craft