/xyz will display block brightness at player's position

This commit is contained in:
GameHerobrine 2025-06-24 17:14:07 +03:00
parent c2faff0f22
commit 23028a7db5

View file

@ -284,8 +284,8 @@ class PlayerAPI{
$xChunk = $x >> 4;
$zChunk = $z >> 4;
return "$username's coordinates: X: $x ($xChunk), Y: $y, Z: $z ($zChunk), world: $level.\nDirection: $direction";
$brightness = $ent->level->getRawBrightness((int)$x, (int)$y, (int)$z);
return "$username's coordinates: X: $x ($xChunk), Y: $y, Z: $z ($zChunk), world: $level.\nDirection: $direction Brightness: $brightness";
}
return $output;
}