mirror of
https://github.com/farcasclaudiu/QRcraft.git
synced 2026-06-22 07:01:17 +03:00
Release 1.0.0
Release 1.0.0
This commit is contained in:
@@ -49,7 +49,6 @@ bin/*
|
||||
timings/*
|
||||
*.log
|
||||
*.txt
|
||||
*.phar
|
||||
server.properties
|
||||
pocketmine.yml
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ ONLY OPs during gameplay (creative preferred)
|
||||
* `/qrt <url>` - test QR text/url to count number of needed blocks (NxN)
|
||||
* `/qrc <url> [Auto|horizontal|vertical]` - create QR panel/block
|
||||
* `/qrl` - list QR panels IDs
|
||||
* `/qrd <ID>` - delete a QR panel by ID
|
||||
* `/qrd <ID>` - delete QR panel by ID (fills panel space with air)
|
||||
* `/qrp <ID>` - teleport you nearby QR panel with specified ID (IN WORK)
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -30,12 +30,12 @@ class QRcraftPlugInListener implements Listener
|
||||
$player = $event->getPlayer();
|
||||
$blockTouched = $event->getBlock();
|
||||
|
||||
if (\pocketmine\DEBUG > 1) {
|
||||
$direction = $player->getDirectionVector();
|
||||
$msg = "Player direction is X:" . round($direction->x, 2) . " Y:" . round($direction->y, 2) . " Z:" . round($direction->z, 2);
|
||||
$this->pgin->log($msg);
|
||||
$player->sendMessage($msg);
|
||||
}
|
||||
// if (\pocketmine\DEBUG > 1) {
|
||||
// $direction = $player->getDirectionVector();
|
||||
// $msg = "Player direction is X:" . round($direction->x, 2) . " Y:" . round($direction->y, 2) . " Z:" . round($direction->z, 2);
|
||||
// $this->pgin->log($msg);
|
||||
// $player->sendMessage($msg);
|
||||
// }
|
||||
|
||||
QRhelper::CreateQRAndUnmark($this->pgin, $player, $blockTouched, $level, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user