Added instabreak permission

This commit is contained in:
Dylan K. Taylor
2024-12-01 15:49:19 +00:00
parent 74ee38ab99
commit 57082c8148
5 changed files with 8 additions and 6 deletions

View File

@ -1800,7 +1800,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
return true;
}
if(!$this->isCreative() && !$target->getBreakInfo()->breaksInstantly()){
if(!$this->hasPermission(DefaultPermissionNames::GAME_BLOCK_DELETE) && !$target->getBreakInfo()->breaksInstantly()){
$this->blockBreakHandler = new SurvivalBlockBreakHandler($this, $pos, $target, $face, 16);
}