From 23028a7db53818f24aa4c6132f3cfa9d915acbb7 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 24 Jun 2025 17:14:07 +0300 Subject: [PATCH] /xyz will display block brightness at player's position --- src/API/PlayerAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index f288c661..75dd7055 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -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; }