This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @name SaveSkin | |
| * @version 1.0.0 | |
| * @main PJZ9n\SaveSkin\Main | |
| * @api 3.0.0 | |
| */ | |
| declare(strict_types=1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @name SaveSkin | |
| * @version 1.0.0 | |
| * @main PJZ9n\SaveSkin\Main | |
| * @api 3.0.0 | |
| */ | |
| declare(strict_types=1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @name SaveSkin | |
| * @version 1.0.0 | |
| * @main PJZ9n\SaveSkin\Main | |
| * @api 3.0.0 | |
| */ | |
| declare(strict_types=1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| function get(string $per, ?int $keta = null) | |
| { | |
| if ($keta === null) { | |
| preg_match('/\.[0-9]+/', $per, $matches); | |
| $m = $matches[0]; | |
| $keta = strlen($m) - 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| class ExampleThread extends Thread | |
| { | |
| /** @var int */ | |
| private $id; | |
| public function __construct(int $id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use pocketmine\plugin\Plugin; | |
| use pocketmine\scheduler\ClosureTask; | |
| use pocketmine\scheduler\TaskHandler; | |
| use Generator; | |
| $generator = (function (int $second): Generator { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** @var \pocketmine\level\Level $level */ | |
| $pos = new Vector3(1, 2, 3); | |
| $item = ItemFactory::get(Item::STONE); | |
| $level->dropItem($pos, $item); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace Example; | |
| use pocketmine\block\Block; | |
| use pocketmine\event\block\BlockBreakEvent; | |
| use pocketmine\event\Listener; | |
| use pocketmine\plugin\PluginBase; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use Particle\Validator\Validator; | |
| $input = [ | |
| "enabled" => true, | |
| "items" => [ | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @license GNU Lesser General Public License v2.1 | |
| * @author FlowyProject(https://github.com/FlowyProject/) | |
| */ | |
| declare(strict_types=1); | |
| namespace PJZ9n\Example; |