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/*
|
timings/*
|
||||||
*.log
|
*.log
|
||||||
*.txt
|
*.txt
|
||||||
*.phar
|
|
||||||
server.properties
|
server.properties
|
||||||
pocketmine.yml
|
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)
|
* `/qrt <url>` - test QR text/url to count number of needed blocks (NxN)
|
||||||
* `/qrc <url> [Auto|horizontal|vertical]` - create QR panel/block
|
* `/qrc <url> [Auto|horizontal|vertical]` - create QR panel/block
|
||||||
* `/qrl` - list QR panels IDs
|
* `/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)
|
* `/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();
|
$player = $event->getPlayer();
|
||||||
$blockTouched = $event->getBlock();
|
$blockTouched = $event->getBlock();
|
||||||
|
|
||||||
if (\pocketmine\DEBUG > 1) {
|
// if (\pocketmine\DEBUG > 1) {
|
||||||
$direction = $player->getDirectionVector();
|
// $direction = $player->getDirectionVector();
|
||||||
$msg = "Player direction is X:" . round($direction->x, 2) . " Y:" . round($direction->y, 2) . " Z:" . round($direction->z, 2);
|
// $msg = "Player direction is X:" . round($direction->x, 2) . " Y:" . round($direction->y, 2) . " Z:" . round($direction->z, 2);
|
||||||
$this->pgin->log($msg);
|
// $this->pgin->log($msg);
|
||||||
$player->sendMessage($msg);
|
// $player->sendMessage($msg);
|
||||||
}
|
// }
|
||||||
|
|
||||||
QRhelper::CreateQRAndUnmark($this->pgin, $player, $blockTouched, $level, true);
|
QRhelper::CreateQRAndUnmark($this->pgin, $player, $blockTouched, $level, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user