mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
/xyz will display block brightness at player's position
This commit is contained in:
parent
c2faff0f22
commit
23028a7db5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue