├── .gitignore ├── example.png ├── phpstan.neon.dist ├── phpstan-baseline.neon ├── plugin.yml ├── resources └── config.yml ├── .poggit.yml ├── composer.json ├── README.md ├── src └── ColinHDev │ └── ActualAntiXRay │ ├── listener │ ├── PlayerCreationListener.php │ └── DataPacketSendListener.php │ ├── ActualAntiXRay.php │ ├── ResourceManager.php │ ├── utils │ └── SubChunkExplorer.php │ ├── tasks │ └── ChunkRequestTask.php │ └── player │ └── Player.php ├── LICENSE └── composer.lock /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | vendor 3 | build-plugin.php 4 | ActualAntiXRay.phar -------------------------------------------------------------------------------- /example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ColinHDev/ActualAntiXRay/HEAD/example.png -------------------------------------------------------------------------------- /phpstan.neon.dist: -------------------------------------------------------------------------------- 1 | parameters: 2 | level: 9 3 | paths: 4 | - src 5 | includes: 6 | - phpstan-baseline.neon -------------------------------------------------------------------------------- /phpstan-baseline.neon: -------------------------------------------------------------------------------- 1 | parameters: 2 | ignoreErrors: 3 | - 4 | message: "#^Result of && is always true\\.$#" 5 | count: 1 6 | path: src/ColinHDev/ActualAntiXRay/player/Player.php 7 | -------------------------------------------------------------------------------- /plugin.yml: -------------------------------------------------------------------------------- 1 | name: ActualAntiXRay 2 | main: ColinHDev\ActualAntiXRay\ActualAntiXRay 3 | version: "1.1.1" 4 | 5 | api: 5.0.0 6 | 7 | author: ColinHDev 8 | website: https://github.com/ColinHDev -------------------------------------------------------------------------------- /resources/config.yml: -------------------------------------------------------------------------------- 1 | # List behaviour: 2 | # - blacklist: AntiXRay will only be applied to worlds that ARE NOT in the list. 3 | # - whitelist: AntiXRay will only be applied to worlds that ARE in the list. 4 | mode: "blacklist" 5 | # List names of worlds here. 6 | worlds: [] -------------------------------------------------------------------------------- /.poggit.yml: -------------------------------------------------------------------------------- 1 | --- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/ColinHDev/AntiXRay 2 | build-by-default: true 3 | branches: 4 | - main 5 | - pm5 6 | projects: 7 | ActualAntiXRay: 8 | path: "" 9 | lint: 10 | phpstan: false 11 | ... 12 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "colinhdev/actualantixray", 3 | "require": { 4 | "pocketmine/pocketmine-mp": "^5.0.0", 5 | "ext-igbinary": "*" 6 | }, 7 | "require-dev": { 8 | "phpstan/phpstan": "^1.9.2", 9 | "phpstan/phpstan-strict-rules": "^1.4.4", 10 | "phpstan/extension-installer": "^1.2.0" 11 | } 12 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ActualAntiXRay 2 | 3 | This is an actual AntiXRay plugin for PocketMine-MP. 4 | 5 | Unlike other so-called "AntiXRay" plugins, this one does not simply inform staff members if an ore is broken. 6 | This plugin modifies the chunk packet sent to the client to make it look like a chunk contains a ridiculous amount of ores. 7 | 8 | ![example.png](example.png) -------------------------------------------------------------------------------- /src/ColinHDev/ActualAntiXRay/listener/PlayerCreationListener.php: -------------------------------------------------------------------------------- 1 | setPlayerClass(Player::class); 13 | } 14 | } -------------------------------------------------------------------------------- /src/ColinHDev/ActualAntiXRay/ActualAntiXRay.php: -------------------------------------------------------------------------------- 1 | getServer()->getPluginManager()->registerEvents(new DataPacketSendListener(), $this); 17 | $this->getServer()->getPluginManager()->registerEvents(new PlayerCreationListener(), $this); 18 | } 19 | } -------------------------------------------------------------------------------- /src/ColinHDev/ActualAntiXRay/ResourceManager.php: -------------------------------------------------------------------------------- 1 | */ 15 | private array $worlds = []; 16 | 17 | public function __construct() { 18 | ActualAntiXRay::getInstance()->saveResource("config.yml"); 19 | $config = new Config(ActualAntiXRay::getInstance()->getDataFolder() . "config.yml", Config::YAML); 20 | $mode = $config->get("mode", "blacklist"); 21 | if ($mode === "blacklist") { 22 | $this->default = true; 23 | } else { 24 | $this->default = false; 25 | } 26 | $worlds = $config->get("worlds", []); 27 | if (is_array($worlds)) { 28 | foreach($worlds as $worldName) { 29 | if (is_string($worldName)) { 30 | $this->worlds[$worldName] = true; 31 | } 32 | } 33 | } 34 | } 35 | 36 | public function isEnabledForWorld(string $worldName) : bool { 37 | return 38 | ($this->default && !isset($this->worlds[$worldName])) || 39 | (!$this->default && isset($this->worlds[$worldName])); 40 | } 41 | } -------------------------------------------------------------------------------- /src/ColinHDev/ActualAntiXRay/utils/SubChunkExplorer.php: -------------------------------------------------------------------------------- 1 | currentChunk === null || $this->currentX !== $chunkX || $this->currentZ !== $chunkZ) { 17 | $this->currentX = $chunkX; 18 | $this->currentZ = $chunkZ; 19 | $this->currentSubChunk = null; 20 | 21 | $this->currentChunk = $this->world->getChunk($this->currentX, $this->currentZ); 22 | if ($this->currentChunk === null) { 23 | return SubChunkExplorerStatus::INVALID; 24 | } 25 | } 26 | 27 | if ($this->currentSubChunk === null || $this->currentY !== $chunkY) { 28 | $this->currentY = $chunkY; 29 | 30 | if ($this->currentY < Chunk::MIN_SUBCHUNK_INDEX || $this->currentY > Chunk::MAX_SUBCHUNK_INDEX) { 31 | $this->currentSubChunk = null; 32 | return SubChunkExplorerStatus::INVALID; 33 | } 34 | 35 | $this->currentSubChunk = $this->currentChunk->getSubChunk($chunkY); 36 | return SubChunkExplorerStatus::MOVED; 37 | } 38 | 39 | return SubChunkExplorerStatus::OK; 40 | } 41 | } -------------------------------------------------------------------------------- /src/ColinHDev/ActualAntiXRay/listener/DataPacketSendListener.php: -------------------------------------------------------------------------------- 1 | getTargets() as $target) { 27 | $world = $target->getPlayer()?->getWorld(); 28 | if (!($world instanceof World)) { 29 | continue; 30 | } 31 | if (!ResourceManager::getInstance()->isEnabledForWorld($world->getFolderName())) { 32 | continue; 33 | } 34 | $applyableTargets[] = $target; 35 | $applyableWorlds[$world->getFolderName()] = $world; 36 | } 37 | if (count($applyableTargets) === 0) { 38 | return; 39 | } 40 | $blockMapping = TypeConverter::getInstance()->getBlockTranslator(); 41 | /** @var array> $positionsToUpdatePerWorld */ 42 | $positionsToUpdatePerWorld = []; 43 | $packets = $event->getPackets(); 44 | foreach ($packets as $packet) { 45 | if (!$packet instanceof UpdateBlockPacket) { 46 | continue; 47 | } 48 | $x = $packet->blockPosition->getX(); 49 | $y = $packet->blockPosition->getY(); 50 | $z = $packet->blockPosition->getZ(); 51 | foreach($applyableWorlds as $world) { 52 | // If the sent block does not match the existing block at that position, then someone uses this packet 53 | // to send fake blocks to the client, for example through the InvMenu virion. 54 | // Since we don't want to undermine his efforts, we will ignore this and don't send any block updates. 55 | if ($blockMapping->internalIdToNetworkId($world->getBlockAt($x, $y, $z)->getStateId()) !== $packet->blockRuntimeId) { 56 | continue; 57 | } 58 | $worldName = $world->getFolderName(); 59 | if (!isset($positionsToUpdatePerWorld[$worldName])) { 60 | $positionsToUpdatePerWorld[$worldName] = []; 61 | } 62 | $positionsToUpdatePerWorld[$worldName][World::blockHash($x, $y, $z)] = null; 63 | foreach((new Vector3($x, $y, $z))->sides() as $point) { 64 | foreach(array_merge([$point], $point->sidesArray()) as $point2) { 65 | $hash = World::blockHash($point2->getFloorX(), $point2->getFloorY(), $point2->getFloorZ()); 66 | if (!array_key_exists($hash, $positionsToUpdatePerWorld[$worldName])) { 67 | $positionsToUpdatePerWorld[$worldName][$hash] = $point2; 68 | } 69 | } 70 | } 71 | } 72 | } 73 | if (count($positionsToUpdatePerWorld) === 0) { 74 | return; 75 | } 76 | foreach($positionsToUpdatePerWorld as $worldName => $positionsToUpdate) { 77 | /** @var NetworkSession[] $worldTargets */ 78 | $worldTargets = array_filter( 79 | $applyableTargets, 80 | static function(NetworkSession $target) use($worldName) : bool { 81 | return $target->getPlayer()?->getWorld()->getFolderName() === $worldName; 82 | } 83 | ); 84 | $positionsToUpdate = array_filter( 85 | $positionsToUpdate, 86 | static function(Vector3|null $value) : bool { 87 | return $value !== null; 88 | } 89 | ); 90 | $world = $applyableWorlds[$worldName]; 91 | foreach ($world->createBlockUpdatePackets($positionsToUpdate) as $packet) { 92 | foreach($worldTargets as $target) { 93 | $target->addToSendBuffer(NetworkSession::encodePacketTimed(PacketSerializer::encoder($target->getPacketSerializerContext()), $packet)); 94 | } 95 | } 96 | } 97 | } 98 | } -------------------------------------------------------------------------------- /src/ColinHDev/ActualAntiXRay/tasks/ChunkRequestTask.php: -------------------------------------------------------------------------------- 1 | replaceableBlocks = ThreadSafeArray::fromArray([ 48 | VanillaBlocks::STONE()->getStateId() => true, 49 | VanillaBlocks::DIRT()->getStateId() => true, 50 | VanillaBlocks::GRAVEL()->getStateId() => true 51 | ]); 52 | $this->replacingBlocks = ThreadSafeArray::fromArray([ 53 | VanillaBlocks::COAL_ORE()->getStateId(), 54 | VanillaBlocks::IRON_ORE()->getStateId(), 55 | VanillaBlocks::LAPIS_LAZULI_ORE()->getStateId(), 56 | VanillaBlocks::REDSTONE_ORE()->getStateId(), 57 | VanillaBlocks::GOLD_ORE()->getStateId(), 58 | VanillaBlocks::DIAMOND_ORE()->getStateId(), 59 | VanillaBlocks::EMERALD_ORE()->getStateId() 60 | ]); 61 | 62 | $this->worldMinY = $world->getMinY(); 63 | $this->worldMaxY = $world->getMaxY(); 64 | 65 | $this->tiles = ChunkSerializer::serializeTiles($chunk); 66 | 67 | $adjacentChunks = []; 68 | for ($x = -1; $x <= 1; $x++) { 69 | for ($z = -1; $z <= 1; $z++) { 70 | if ($x === 0 || $z === 0) { 71 | if ($x === 0 && $z === 0) { 72 | continue; 73 | } 74 | $cx = $chunkX + $x; 75 | $cz = $chunkZ + $z; 76 | $temporaryChunkLoader = new class implements ChunkLoader{}; 77 | $world->registerChunkLoader($temporaryChunkLoader, $cx, $cz); 78 | $adjacentChunks[World::chunkHash($x, $z)] = $world->loadChunk($cx, $cz); 79 | $world->unregisterChunkLoader($temporaryChunkLoader, $cx, $cz); 80 | } 81 | } 82 | } 83 | $this->adjacentChunks = igbinary_serialize( 84 | array_map( 85 | static fn(?Chunk $c) => $c !== null ? FastChunkSerializer::serializeTerrain($c) : null, 86 | $adjacentChunks 87 | )) ?? throw new AssumptionFailedError("igbinary_serialize() returned null"); 88 | } 89 | 90 | public function onRun() : void { 91 | $adjacentChunks = igbinary_unserialize($this->adjacentChunks); 92 | assert(is_array($adjacentChunks)); 93 | $chunks = array_map( 94 | static fn (?string $serialized) => $serialized !== null ? FastChunkSerializer::deserializeTerrain($serialized) : null, 95 | array_merge( 96 | [World::chunkHash(0, 0) => $this->chunk], 97 | $adjacentChunks 98 | ) 99 | ); 100 | $manager = new SimpleChunkManager($this->worldMinY, $this->worldMaxY); 101 | foreach($chunks as $relativeChunkHash => $chunk) { 102 | if (!($chunk instanceof Chunk)) { 103 | continue; 104 | } 105 | World::getXZ($relativeChunkHash, $relativeChunkX, $relativeChunkZ); 106 | $manager->setChunk($this->chunkX + $relativeChunkX, $this->chunkZ + $relativeChunkZ, $chunk); 107 | } 108 | 109 | $explorer = new SubChunkExplorer($manager); 110 | for ($subChunkY = Chunk::MIN_SUBCHUNK_INDEX; $subChunkY < Chunk::MAX_SUBCHUNK_INDEX; $subChunkY++) { 111 | $explorer->moveToChunk($this->chunkX, $subChunkY, $this->chunkZ); 112 | if ($explorer->currentSubChunk instanceof SubChunk && $explorer->currentSubChunk->isEmptyFast()) { 113 | continue; 114 | } 115 | 116 | for ($x = 0; $x < 16; $x++) { 117 | for ($z = 0; $z < 16; $z++) { 118 | for ($y = 0; $y < 16; $y++) { 119 | 120 | if ($subChunkY === Chunk::MIN_SUBCHUNK_INDEX && $y === 0) continue; 121 | if ($subChunkY + 1 === Chunk::MAX_SUBCHUNK_INDEX && $y === 15) continue; 122 | 123 | $vector = new Vector3($x, $y, $z); 124 | if (!$this->isBlockReplaceable($explorer, $vector, $subChunkY)) { 125 | // If the current block is not replaceable, we can increment the y coordinate by one, 126 | // as we can skip the following loop which would check that block again as block below. 127 | $y++; 128 | continue; 129 | } 130 | 131 | // We could use the random_int() function instead but since mt_rand() is faster than random_int(), 132 | // we use that as it is not important if our the returned values are cryptographically secure. 133 | if (mt_rand(1, 100) > 75) { 134 | continue; 135 | } 136 | 137 | foreach (Facing::ALL as $facing) { 138 | $blockSide = $vector->getSide($facing); 139 | if (!$this->isBlockReplaceable($explorer, $blockSide, $subChunkY)) { 140 | if ($facing === Facing::UP) { 141 | // If the block above is not replaceable, we can increment the y coordinate by two, 142 | // as we can skip the following two loops which would check that block again. 143 | // First, as the "main" block, then as the block below. 144 | $y += 2; 145 | continue 2; 146 | } 147 | continue 2; 148 | } 149 | } 150 | 151 | $randomBlockId = $this->replacingBlocks[mt_rand(0, count($this->replacingBlocks) - 1)]; 152 | assert($explorer->currentSubChunk instanceof SubChunk); 153 | $explorer->currentSubChunk->setBlockStateId($x, $y, $z, $randomBlockId); 154 | } 155 | } 156 | } 157 | } 158 | 159 | $chunk = $manager->getChunk($this->chunkX, $this->chunkZ); 160 | assert($chunk instanceof Chunk); 161 | $subCount = ChunkSerializer::getSubChunkCount($chunk); 162 | $converter = TypeConverter::getInstance(); 163 | $encoderContext = new PacketSerializerContext($converter->getItemTypeDictionary()); 164 | $payload = ChunkSerializer::serializeFullChunk($chunk, $converter->getBlockTranslator(), $encoderContext, $this->tiles); 165 | 166 | $stream = new BinaryStream(); 167 | PacketBatch::encodePackets($stream, $encoderContext, [LevelChunkPacket::create(new ChunkPosition($this->chunkX, $this->chunkZ), $subCount, false, null, $payload)]); 168 | $this->setResult($this->compressor->deserialize()->compress($stream->getBuffer())); 169 | } 170 | 171 | private function isBlockReplaceable(SubChunkExplorer $explorer, Vector3 $vector, int $subChunkY) : bool { 172 | $chunkX = $this->chunkX; 173 | $x = $vector->getX(); 174 | assert(is_int($x)); 175 | if ($x < 0) { 176 | $x = 15; 177 | $chunkX--; 178 | } else if ($x > 15) { 179 | $x = 0; 180 | $chunkX++; 181 | } 182 | 183 | $chunkZ = $this->chunkZ; 184 | $z = $vector->getZ(); 185 | assert(is_int($z)); 186 | if ($z < 0) { 187 | $z = 15; 188 | $chunkZ--; 189 | } else if ($z > 15) { 190 | $z = 0; 191 | $chunkZ++; 192 | } 193 | 194 | $y = $vector->getY(); 195 | assert(is_int($y)); 196 | if ($y < 0) { 197 | $y = 15; 198 | $subChunkY--; 199 | } else if ($y > 15) { 200 | $y = 0; 201 | $subChunkY++; 202 | } 203 | 204 | $explorer->moveToChunk($chunkX, $subChunkY, $chunkZ); 205 | if ($explorer->currentSubChunk instanceof SubChunk) { 206 | return isset($this->replaceableBlocks[$explorer->currentSubChunk->getBlockStateId($x, $y, $z)]); 207 | } 208 | return false; 209 | } 210 | } -------------------------------------------------------------------------------- /src/ColinHDev/ActualAntiXRay/player/Player.php: -------------------------------------------------------------------------------- 1 | 25 | */ 26 | private array $activeChunkGenerationRequests = []; 27 | 28 | /** 29 | * Requests chunks from the world to be sent, up to a set limit every tick. This operates on the results of the most recent chunk 30 | * order. 31 | */ 32 | protected function requestChunks() : void{ 33 | if(!$this->isConnected()){ 34 | return; 35 | } 36 | 37 | if (!ResourceManager::getInstance()->isEnabledForWorld($this->getWorld()->getFolderName())) { 38 | parent::requestChunks(); 39 | return; 40 | } 41 | 42 | Timings::$playerChunkSend->startTiming(); 43 | 44 | $count = 0; 45 | $world = $this->getWorld(); 46 | 47 | $limit = $this->chunksPerTick - count($this->activeChunkGenerationRequests); 48 | foreach($this->loadQueue as $index => $distance){ 49 | if($count >= $limit){ 50 | break; 51 | } 52 | 53 | $X = null; 54 | $Z = null; 55 | World::getXZ($index, $X, $Z); 56 | assert(is_int($X) && is_int($Z)); 57 | 58 | ++$count; 59 | 60 | $this->usedChunks[$index] = UsedChunkStatus::REQUESTED_GENERATION(); 61 | $this->activeChunkGenerationRequests[$index] = true; 62 | unset($this->loadQueue[$index]); 63 | $this->getWorld()->registerChunkLoader($this->chunkLoader, $X, $Z, true); 64 | $this->getWorld()->registerChunkListener($this, $X, $Z); 65 | 66 | $this->getWorld()->requestChunkPopulation($X, $Z, $this->chunkLoader)->onCompletion( 67 | function() use ($X, $Z, $index, $world) : void{ 68 | if(!$this->isConnected() || !isset($this->usedChunks[$index]) || $world !== $this->getWorld()){ 69 | return; 70 | } 71 | if(!$this->usedChunks[$index]->equals(UsedChunkStatus::REQUESTED_GENERATION())){ 72 | //We may have previously requested this, decided we didn't want it, and then decided we did want 73 | //it again, all before the generation request got executed. In that case, the promise would have 74 | //multiple callbacks for this player. In that case, only the first one matters. 75 | return; 76 | } 77 | unset($this->activeChunkGenerationRequests[$index]); 78 | $this->usedChunks[$index] = UsedChunkStatus::REQUESTED_SENDING(); 79 | 80 | $this->startUsingChunk($X, $Z, function() use ($X, $Z, $index) : void{ 81 | $this->usedChunks[$index] = UsedChunkStatus::SENT(); 82 | if($this->spawnChunkLoadCount === -1){ 83 | $this->spawnEntitiesOnChunk($X, $Z); 84 | }elseif($this->spawnChunkLoadCount++ === $this->spawnThreshold){ 85 | $this->spawnChunkLoadCount = -1; 86 | 87 | $this->spawnEntitiesOnAllChunks(); 88 | 89 | $this->getNetworkSession()->notifyTerrainReady(); 90 | } 91 | (new PlayerPostChunkSendEvent($this, $X, $Z))->call(); 92 | }); 93 | }, 94 | static function() : void{ 95 | //NOOP: we'll re-request this if it fails anyway 96 | } 97 | ); 98 | } 99 | 100 | Timings::$playerChunkSend->stopTiming(); 101 | } 102 | 103 | /** 104 | * Instructs the networksession to start using the chunk at the given coordinates. This may occur asynchronously. 105 | * @param \Closure $onCompletion To be called when chunk sending has completed. 106 | * @phpstan-param \Closure() : void $onCompletion 107 | */ 108 | public function startUsingChunk(int $chunkX, int $chunkZ, \Closure $onCompletion) : void{ 109 | Utils::validateCallableSignature(function() : void{}, $onCompletion); 110 | 111 | $world = $this->getLocation()->getWorld(); 112 | $this->request(ChunkCache::getInstance($world, $this->getNetworkSession()->getCompressor()), $chunkX, $chunkZ)->onResolve( 113 | 114 | //this callback may be called synchronously or asynchronously, depending on whether the promise is resolved yet 115 | function(CompressBatchPromise $promise) use ($world, $onCompletion, $chunkX, $chunkZ) : void{ 116 | if(!$this->isConnected()){ 117 | return; 118 | } 119 | $currentWorld = $this->getLocation()->getWorld(); 120 | if($world !== $currentWorld || ($status = $this->getUsedChunkStatus($chunkX, $chunkZ)) === null){ 121 | $this->logger->debug("Tried to send no-longer-active chunk $chunkX $chunkZ in world " . $world->getFolderName()); 122 | return; 123 | } 124 | if(!$status->equals(UsedChunkStatus::REQUESTED_SENDING())){ 125 | //TODO: make this an error 126 | //this could be triggered due to the shitty way that chunk resends are handled 127 | //right now - not because of the spammy re-requesting, but because the chunk status reverts 128 | //to NEEDED if they want to be resent. 129 | return; 130 | } 131 | $world->timings->syncChunkSend->startTiming(); 132 | try{ 133 | $this->getNetworkSession()->queueCompressed($promise); 134 | $onCompletion(); 135 | }finally{ 136 | $world->timings->syncChunkSend->stopTiming(); 137 | } 138 | } 139 | ); 140 | } 141 | 142 | /** 143 | * Requests asynchronous preparation of the chunk at the given coordinates. 144 | * 145 | * @return CompressBatchPromise a promise of resolution which will contain a compressed chunk packet. 146 | */ 147 | public function request(ChunkCache $chunkCache, int $chunkX, int $chunkZ) : CompressBatchPromise{ 148 | $property = new ReflectionProperty(ChunkCache::class, "world"); 149 | /** @var World $world */ 150 | $world = $property->getValue($chunkCache); 151 | 152 | $world->registerChunkListener($chunkCache, $chunkX, $chunkZ); 153 | $chunk = $world->getChunk($chunkX, $chunkZ); 154 | if($chunk === null){ 155 | throw new \InvalidArgumentException("Cannot request an unloaded chunk"); 156 | } 157 | $chunkHash = World::chunkHash($chunkX, $chunkZ); 158 | 159 | $cacheProperty = new ReflectionProperty(ChunkCache::class, "caches"); 160 | /** @var CompressBatchPromise[] $caches */ 161 | $caches = $cacheProperty->getValue($chunkCache); 162 | 163 | if(isset($caches[$chunkHash])){ 164 | $property = new ReflectionProperty(ChunkCache::class, "hits"); 165 | /** @var int $hits */ 166 | $hits = $property->getValue($chunkCache); 167 | $property->setValue($chunkCache, $hits + 1); 168 | 169 | return $caches[$chunkHash]; 170 | } 171 | 172 | $property = new ReflectionProperty(ChunkCache::class, "misses"); 173 | /** @var int $misses */ 174 | $misses = $property->getValue($chunkCache); 175 | $property->setValue($chunkCache, $misses + 1); 176 | 177 | $world->timings->syncChunkSendPrepare->startTiming(); 178 | try{ 179 | $caches[$chunkHash] = new CompressBatchPromise(); 180 | $cacheProperty->setValue($chunkCache, $caches); 181 | 182 | $property = new ReflectionProperty(ChunkCache::class, "compressor"); 183 | /** @var Compressor $compressor */ 184 | $compressor = $property->getValue($chunkCache); 185 | 186 | $world->getServer()->getAsyncPool()->submitTask( 187 | new ChunkRequestTask( 188 | $world, 189 | $chunkX, 190 | $chunkZ, 191 | $chunk, 192 | $caches[$chunkHash], 193 | $compressor, 194 | function() use ($world, $chunkCache, $chunkHash, $chunkX, $chunkZ) : void{ 195 | $world->getLogger()->error("Failed preparing chunk $chunkX $chunkZ, retrying"); 196 | 197 | $property = new ReflectionProperty(ChunkCache::class, "caches"); 198 | /** @var CompressBatchPromise[] $caches */ 199 | $caches = $property->getValue($chunkCache); 200 | if(isset($caches[$chunkHash])){ 201 | $this->restartPendingRequest($chunkCache, $chunkX, $chunkZ); 202 | } 203 | } 204 | ) 205 | ); 206 | 207 | return $caches[$chunkHash]; 208 | }finally{ 209 | $world->timings->syncChunkSendPrepare->stopTiming(); 210 | } 211 | } 212 | 213 | /** 214 | * Restarts an async request for an unresolved chunk. 215 | * 216 | * @throws \InvalidArgumentException 217 | */ 218 | private function restartPendingRequest(ChunkCache $chunkCache, int $chunkX, int $chunkZ) : void{ 219 | $chunkHash = World::chunkHash($chunkX, $chunkZ); 220 | 221 | $property = new ReflectionProperty(ChunkCache::class, "caches"); 222 | /** @var CompressBatchPromise[] $caches */ 223 | $caches = $property->getValue($chunkCache); 224 | 225 | $existing = $caches[$chunkHash] ?? null; 226 | if($existing === null || $existing->hasResult()){ 227 | throw new \InvalidArgumentException("Restart can only be applied to unresolved promises"); 228 | } 229 | $existing->cancel(); 230 | unset($caches[$chunkHash]); 231 | $property->setValue($chunkCache, $caches); 232 | 233 | $this->request($chunkCache, $chunkX, $chunkZ)->onResolve(...$existing->getResolveCallbacks()); 234 | } 235 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 2021 colin_mwjmjjb 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 2021 colin_mwjmjjb 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_readme": [ 3 | "This file locks the dependencies of your project to a known state", 4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", 5 | "This file is @generated automatically" 6 | ], 7 | "content-hash": "fcfbe1ddfa1a7b5c65f2efdad8ecbe4d", 8 | "packages": [ 9 | { 10 | "name": "adhocore/json-comment", 11 | "version": "1.2.1", 12 | "source": { 13 | "type": "git", 14 | "url": "https://github.com/adhocore/php-json-comment.git", 15 | "reference": "651023f9fe52e9efa2198cbaf6e481d1968e2377" 16 | }, 17 | "dist": { 18 | "type": "zip", 19 | "url": "https://api.github.com/repos/adhocore/php-json-comment/zipball/651023f9fe52e9efa2198cbaf6e481d1968e2377", 20 | "reference": "651023f9fe52e9efa2198cbaf6e481d1968e2377", 21 | "shasum": "" 22 | }, 23 | "require": { 24 | "ext-ctype": "*", 25 | "php": ">=7.0" 26 | }, 27 | "require-dev": { 28 | "phpunit/phpunit": "^6.5 || ^7.5 || ^8.5" 29 | }, 30 | "type": "library", 31 | "autoload": { 32 | "psr-4": { 33 | "Ahc\\Json\\": "src/" 34 | } 35 | }, 36 | "notification-url": "https://packagist.org/downloads/", 37 | "license": [ 38 | "MIT" 39 | ], 40 | "authors": [ 41 | { 42 | "name": "Jitendra Adhikari", 43 | "email": "jiten.adhikary@gmail.com" 44 | } 45 | ], 46 | "description": "Lightweight JSON comment stripper library for PHP", 47 | "keywords": [ 48 | "comment", 49 | "json", 50 | "strip-comment" 51 | ], 52 | "support": { 53 | "issues": "https://github.com/adhocore/php-json-comment/issues", 54 | "source": "https://github.com/adhocore/php-json-comment/tree/1.2.1" 55 | }, 56 | "funding": [ 57 | { 58 | "url": "https://paypal.me/ji10", 59 | "type": "custom" 60 | }, 61 | { 62 | "url": "https://github.com/adhocore", 63 | "type": "github" 64 | } 65 | ], 66 | "time": "2022-10-02T11:22:07+00:00" 67 | }, 68 | { 69 | "name": "brick/math", 70 | "version": "0.11.0", 71 | "source": { 72 | "type": "git", 73 | "url": "https://github.com/brick/math.git", 74 | "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478" 75 | }, 76 | "dist": { 77 | "type": "zip", 78 | "url": "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478", 79 | "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478", 80 | "shasum": "" 81 | }, 82 | "require": { 83 | "php": "^8.0" 84 | }, 85 | "require-dev": { 86 | "php-coveralls/php-coveralls": "^2.2", 87 | "phpunit/phpunit": "^9.0", 88 | "vimeo/psalm": "5.0.0" 89 | }, 90 | "type": "library", 91 | "autoload": { 92 | "psr-4": { 93 | "Brick\\Math\\": "src/" 94 | } 95 | }, 96 | "notification-url": "https://packagist.org/downloads/", 97 | "license": [ 98 | "MIT" 99 | ], 100 | "description": "Arbitrary-precision arithmetic library", 101 | "keywords": [ 102 | "Arbitrary-precision", 103 | "BigInteger", 104 | "BigRational", 105 | "arithmetic", 106 | "bigdecimal", 107 | "bignum", 108 | "brick", 109 | "math" 110 | ], 111 | "support": { 112 | "issues": "https://github.com/brick/math/issues", 113 | "source": "https://github.com/brick/math/tree/0.11.0" 114 | }, 115 | "funding": [ 116 | { 117 | "url": "https://github.com/BenMorel", 118 | "type": "github" 119 | } 120 | ], 121 | "time": "2023-01-15T23:15:59+00:00" 122 | }, 123 | { 124 | "name": "fgrosse/phpasn1", 125 | "version": "v2.5.0", 126 | "source": { 127 | "type": "git", 128 | "url": "https://github.com/fgrosse/PHPASN1.git", 129 | "reference": "42060ed45344789fb9f21f9f1864fc47b9e3507b" 130 | }, 131 | "dist": { 132 | "type": "zip", 133 | "url": "https://api.github.com/repos/fgrosse/PHPASN1/zipball/42060ed45344789fb9f21f9f1864fc47b9e3507b", 134 | "reference": "42060ed45344789fb9f21f9f1864fc47b9e3507b", 135 | "shasum": "" 136 | }, 137 | "require": { 138 | "php": "^7.1 || ^8.0" 139 | }, 140 | "require-dev": { 141 | "php-coveralls/php-coveralls": "~2.0", 142 | "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" 143 | }, 144 | "suggest": { 145 | "ext-bcmath": "BCmath is the fallback extension for big integer calculations", 146 | "ext-curl": "For loading OID information from the web if they have not bee defined statically", 147 | "ext-gmp": "GMP is the preferred extension for big integer calculations", 148 | "phpseclib/bcmath_compat": "BCmath polyfill for servers where neither GMP nor BCmath is available" 149 | }, 150 | "type": "library", 151 | "extra": { 152 | "branch-alias": { 153 | "dev-master": "2.0.x-dev" 154 | } 155 | }, 156 | "autoload": { 157 | "psr-4": { 158 | "FG\\": "lib/" 159 | } 160 | }, 161 | "notification-url": "https://packagist.org/downloads/", 162 | "license": [ 163 | "MIT" 164 | ], 165 | "authors": [ 166 | { 167 | "name": "Friedrich Große", 168 | "email": "friedrich.grosse@gmail.com", 169 | "homepage": "https://github.com/FGrosse", 170 | "role": "Author" 171 | }, 172 | { 173 | "name": "All contributors", 174 | "homepage": "https://github.com/FGrosse/PHPASN1/contributors" 175 | } 176 | ], 177 | "description": "A PHP Framework that allows you to encode and decode arbitrary ASN.1 structures using the ITU-T X.690 Encoding Rules.", 178 | "homepage": "https://github.com/FGrosse/PHPASN1", 179 | "keywords": [ 180 | "DER", 181 | "asn.1", 182 | "asn1", 183 | "ber", 184 | "binary", 185 | "decoding", 186 | "encoding", 187 | "x.509", 188 | "x.690", 189 | "x509", 190 | "x690" 191 | ], 192 | "support": { 193 | "issues": "https://github.com/fgrosse/PHPASN1/issues", 194 | "source": "https://github.com/fgrosse/PHPASN1/tree/v2.5.0" 195 | }, 196 | "abandoned": true, 197 | "time": "2022-12-19T11:08:26+00:00" 198 | }, 199 | { 200 | "name": "pocketmine/bedrock-block-upgrade-schema", 201 | "version": "2.2.0", 202 | "source": { 203 | "type": "git", 204 | "url": "https://github.com/pmmp/BedrockBlockUpgradeSchema.git", 205 | "reference": "79bb3ad542ef19e828fdf1fa6adc54f1fa4b3bb5" 206 | }, 207 | "dist": { 208 | "type": "zip", 209 | "url": "https://api.github.com/repos/pmmp/BedrockBlockUpgradeSchema/zipball/79bb3ad542ef19e828fdf1fa6adc54f1fa4b3bb5", 210 | "reference": "79bb3ad542ef19e828fdf1fa6adc54f1fa4b3bb5", 211 | "shasum": "" 212 | }, 213 | "type": "library", 214 | "notification-url": "https://packagist.org/downloads/", 215 | "license": [ 216 | "CC0-1.0" 217 | ], 218 | "description": "Schemas describing how to upgrade saved block data in older Minecraft: Bedrock Edition world saves", 219 | "support": { 220 | "issues": "https://github.com/pmmp/BedrockBlockUpgradeSchema/issues", 221 | "source": "https://github.com/pmmp/BedrockBlockUpgradeSchema/tree/2.2.0" 222 | }, 223 | "time": "2023-05-04T21:49:36+00:00" 224 | }, 225 | { 226 | "name": "pocketmine/bedrock-data", 227 | "version": "2.3.1+bedrock-1.20.0", 228 | "source": { 229 | "type": "git", 230 | "url": "https://github.com/pmmp/BedrockData.git", 231 | "reference": "fb89ccdc039252462d8d068a769635e24151b7e2" 232 | }, 233 | "dist": { 234 | "type": "zip", 235 | "url": "https://api.github.com/repos/pmmp/BedrockData/zipball/fb89ccdc039252462d8d068a769635e24151b7e2", 236 | "reference": "fb89ccdc039252462d8d068a769635e24151b7e2", 237 | "shasum": "" 238 | }, 239 | "type": "library", 240 | "notification-url": "https://packagist.org/downloads/", 241 | "license": [ 242 | "CC0-1.0" 243 | ], 244 | "description": "Blobs of data generated from Minecraft: Bedrock Edition, used by PocketMine-MP", 245 | "support": { 246 | "issues": "https://github.com/pmmp/BedrockData/issues", 247 | "source": "https://github.com/pmmp/BedrockData/tree/2.3.1+bedrock-1.20.0" 248 | }, 249 | "time": "2023-06-13T16:42:09+00:00" 250 | }, 251 | { 252 | "name": "pocketmine/bedrock-item-upgrade-schema", 253 | "version": "1.3.0", 254 | "source": { 255 | "type": "git", 256 | "url": "https://github.com/pmmp/BedrockItemUpgradeSchema.git", 257 | "reference": "b16c59cfae08833f180dd82f88de7c1f43bc67c9" 258 | }, 259 | "dist": { 260 | "type": "zip", 261 | "url": "https://api.github.com/repos/pmmp/BedrockItemUpgradeSchema/zipball/b16c59cfae08833f180dd82f88de7c1f43bc67c9", 262 | "reference": "b16c59cfae08833f180dd82f88de7c1f43bc67c9", 263 | "shasum": "" 264 | }, 265 | "type": "library", 266 | "notification-url": "https://packagist.org/downloads/", 267 | "license": [ 268 | "CC0-1.0" 269 | ], 270 | "description": "JSON schemas for upgrading items found in older Minecraft: Bedrock world saves", 271 | "support": { 272 | "issues": "https://github.com/pmmp/BedrockItemUpgradeSchema/issues", 273 | "source": "https://github.com/pmmp/BedrockItemUpgradeSchema/tree/1.3.0" 274 | }, 275 | "time": "2023-05-18T15:34:32+00:00" 276 | }, 277 | { 278 | "name": "pocketmine/bedrock-protocol", 279 | "version": "22.0.0+bedrock-1.20.0", 280 | "source": { 281 | "type": "git", 282 | "url": "https://github.com/pmmp/BedrockProtocol.git", 283 | "reference": "ceff28a0bd5d248f37fb97be3e836d536e37526e" 284 | }, 285 | "dist": { 286 | "type": "zip", 287 | "url": "https://api.github.com/repos/pmmp/BedrockProtocol/zipball/ceff28a0bd5d248f37fb97be3e836d536e37526e", 288 | "reference": "ceff28a0bd5d248f37fb97be3e836d536e37526e", 289 | "shasum": "" 290 | }, 291 | "require": { 292 | "ext-json": "*", 293 | "netresearch/jsonmapper": "^4.0", 294 | "php": "^8.0", 295 | "pocketmine/binaryutils": "^0.2.0", 296 | "pocketmine/color": "^0.2.0 || ^0.3.0", 297 | "pocketmine/math": "^0.3.0 || ^0.4.0", 298 | "pocketmine/nbt": "^0.3.0", 299 | "ramsey/uuid": "^4.1" 300 | }, 301 | "require-dev": { 302 | "phpstan/phpstan": "1.10.7", 303 | "phpstan/phpstan-phpunit": "^1.0.0", 304 | "phpstan/phpstan-strict-rules": "^1.0.0", 305 | "phpunit/phpunit": "^9.5" 306 | }, 307 | "type": "library", 308 | "autoload": { 309 | "psr-4": { 310 | "pocketmine\\network\\mcpe\\protocol\\": "src/" 311 | } 312 | }, 313 | "notification-url": "https://packagist.org/downloads/", 314 | "license": [ 315 | "LGPL-3.0" 316 | ], 317 | "description": "An implementation of the Minecraft: Bedrock Edition protocol in PHP", 318 | "support": { 319 | "issues": "https://github.com/pmmp/BedrockProtocol/issues", 320 | "source": "https://github.com/pmmp/BedrockProtocol/tree/22.0.0+bedrock-1.20.0" 321 | }, 322 | "time": "2023-06-07T19:22:05+00:00" 323 | }, 324 | { 325 | "name": "pocketmine/binaryutils", 326 | "version": "0.2.4", 327 | "source": { 328 | "type": "git", 329 | "url": "https://github.com/pmmp/BinaryUtils.git", 330 | "reference": "5ac7eea91afbad8dc498f5ce34ce6297d5e6ea9a" 331 | }, 332 | "dist": { 333 | "type": "zip", 334 | "url": "https://api.github.com/repos/pmmp/BinaryUtils/zipball/5ac7eea91afbad8dc498f5ce34ce6297d5e6ea9a", 335 | "reference": "5ac7eea91afbad8dc498f5ce34ce6297d5e6ea9a", 336 | "shasum": "" 337 | }, 338 | "require": { 339 | "php": "^7.4 || ^8.0", 340 | "php-64bit": "*" 341 | }, 342 | "require-dev": { 343 | "phpstan/extension-installer": "^1.0", 344 | "phpstan/phpstan": "1.3.0", 345 | "phpstan/phpstan-phpunit": "^1.0", 346 | "phpstan/phpstan-strict-rules": "^1.0.0", 347 | "phpunit/phpunit": "^9.5" 348 | }, 349 | "type": "library", 350 | "autoload": { 351 | "psr-4": { 352 | "pocketmine\\utils\\": "src/" 353 | } 354 | }, 355 | "notification-url": "https://packagist.org/downloads/", 356 | "license": [ 357 | "LGPL-3.0" 358 | ], 359 | "description": "Classes and methods for conveniently handling binary data", 360 | "support": { 361 | "issues": "https://github.com/pmmp/BinaryUtils/issues", 362 | "source": "https://github.com/pmmp/BinaryUtils/tree/0.2.4" 363 | }, 364 | "time": "2022-01-12T18:06:33+00:00" 365 | }, 366 | { 367 | "name": "pocketmine/callback-validator", 368 | "version": "1.0.3", 369 | "source": { 370 | "type": "git", 371 | "url": "https://github.com/pmmp/CallbackValidator.git", 372 | "reference": "64787469766bcaa7e5885242e85c23c25e8c55a2" 373 | }, 374 | "dist": { 375 | "type": "zip", 376 | "url": "https://api.github.com/repos/pmmp/CallbackValidator/zipball/64787469766bcaa7e5885242e85c23c25e8c55a2", 377 | "reference": "64787469766bcaa7e5885242e85c23c25e8c55a2", 378 | "shasum": "" 379 | }, 380 | "require": { 381 | "ext-reflection": "*", 382 | "php": "^7.1 || ^8.0" 383 | }, 384 | "replace": { 385 | "daverandom/callback-validator": "*" 386 | }, 387 | "require-dev": { 388 | "phpstan/extension-installer": "^1.0", 389 | "phpstan/phpstan": "0.12.59", 390 | "phpstan/phpstan-strict-rules": "^0.12.4", 391 | "phpunit/phpunit": "^7.5 || ^8.5 || ^9.0" 392 | }, 393 | "type": "library", 394 | "autoload": { 395 | "psr-4": { 396 | "DaveRandom\\CallbackValidator\\": "src/" 397 | } 398 | }, 399 | "notification-url": "https://packagist.org/downloads/", 400 | "license": [ 401 | "MIT" 402 | ], 403 | "authors": [ 404 | { 405 | "name": "Chris Wright", 406 | "email": "cw@daverandom.com" 407 | } 408 | ], 409 | "description": "Fork of daverandom/callback-validator - Tools for validating callback signatures", 410 | "support": { 411 | "issues": "https://github.com/pmmp/CallbackValidator/issues", 412 | "source": "https://github.com/pmmp/CallbackValidator/tree/1.0.3" 413 | }, 414 | "time": "2020-12-11T01:45:37+00:00" 415 | }, 416 | { 417 | "name": "pocketmine/color", 418 | "version": "0.3.1", 419 | "source": { 420 | "type": "git", 421 | "url": "https://github.com/pmmp/Color.git", 422 | "reference": "a0421f1e9e0b0c619300fb92d593283378f6a5e1" 423 | }, 424 | "dist": { 425 | "type": "zip", 426 | "url": "https://api.github.com/repos/pmmp/Color/zipball/a0421f1e9e0b0c619300fb92d593283378f6a5e1", 427 | "reference": "a0421f1e9e0b0c619300fb92d593283378f6a5e1", 428 | "shasum": "" 429 | }, 430 | "require": { 431 | "php": "^8.0" 432 | }, 433 | "require-dev": { 434 | "phpstan/phpstan": "1.10.3", 435 | "phpstan/phpstan-strict-rules": "^1.2.0" 436 | }, 437 | "type": "library", 438 | "autoload": { 439 | "psr-4": { 440 | "pocketmine\\color\\": "src/" 441 | } 442 | }, 443 | "notification-url": "https://packagist.org/downloads/", 444 | "license": [ 445 | "LGPL-3.0" 446 | ], 447 | "description": "Color handling library used by PocketMine-MP and related projects", 448 | "support": { 449 | "issues": "https://github.com/pmmp/Color/issues", 450 | "source": "https://github.com/pmmp/Color/tree/0.3.1" 451 | }, 452 | "time": "2023-04-10T11:38:05+00:00" 453 | }, 454 | { 455 | "name": "pocketmine/errorhandler", 456 | "version": "0.6.0", 457 | "source": { 458 | "type": "git", 459 | "url": "https://github.com/pmmp/ErrorHandler.git", 460 | "reference": "dae214a04348b911e8219ebf125ff1c5589cc878" 461 | }, 462 | "dist": { 463 | "type": "zip", 464 | "url": "https://api.github.com/repos/pmmp/ErrorHandler/zipball/dae214a04348b911e8219ebf125ff1c5589cc878", 465 | "reference": "dae214a04348b911e8219ebf125ff1c5589cc878", 466 | "shasum": "" 467 | }, 468 | "require": { 469 | "php": "^8.0" 470 | }, 471 | "require-dev": { 472 | "phpstan/phpstan": "0.12.99", 473 | "phpstan/phpstan-strict-rules": "^0.12.2", 474 | "phpunit/phpunit": "^9.5" 475 | }, 476 | "type": "library", 477 | "autoload": { 478 | "psr-4": { 479 | "pocketmine\\errorhandler\\": "src/" 480 | } 481 | }, 482 | "notification-url": "https://packagist.org/downloads/", 483 | "license": [ 484 | "LGPL-3.0" 485 | ], 486 | "description": "Utilities to handle nasty PHP E_* errors in a usable way", 487 | "support": { 488 | "issues": "https://github.com/pmmp/ErrorHandler/issues", 489 | "source": "https://github.com/pmmp/ErrorHandler/tree/0.6.0" 490 | }, 491 | "time": "2022-01-08T21:05:46+00:00" 492 | }, 493 | { 494 | "name": "pocketmine/locale-data", 495 | "version": "2.19.5", 496 | "source": { 497 | "type": "git", 498 | "url": "https://github.com/pmmp/Language.git", 499 | "reference": "71af5f9bd23b4e4bad8920dac7f4fe08e5205f7d" 500 | }, 501 | "dist": { 502 | "type": "zip", 503 | "url": "https://api.github.com/repos/pmmp/Language/zipball/71af5f9bd23b4e4bad8920dac7f4fe08e5205f7d", 504 | "reference": "71af5f9bd23b4e4bad8920dac7f4fe08e5205f7d", 505 | "shasum": "" 506 | }, 507 | "type": "library", 508 | "notification-url": "https://packagist.org/downloads/", 509 | "description": "Language resources used by PocketMine-MP", 510 | "support": { 511 | "issues": "https://github.com/pmmp/Language/issues", 512 | "source": "https://github.com/pmmp/Language/tree/2.19.5" 513 | }, 514 | "time": "2023-03-19T16:45:15+00:00" 515 | }, 516 | { 517 | "name": "pocketmine/log", 518 | "version": "0.4.0", 519 | "source": { 520 | "type": "git", 521 | "url": "https://github.com/pmmp/Log.git", 522 | "reference": "e6c912c0f9055c81d23108ec2d179b96f404c043" 523 | }, 524 | "dist": { 525 | "type": "zip", 526 | "url": "https://api.github.com/repos/pmmp/Log/zipball/e6c912c0f9055c81d23108ec2d179b96f404c043", 527 | "reference": "e6c912c0f9055c81d23108ec2d179b96f404c043", 528 | "shasum": "" 529 | }, 530 | "require": { 531 | "php": "^7.4 || ^8.0" 532 | }, 533 | "conflict": { 534 | "pocketmine/spl": "<0.4" 535 | }, 536 | "require-dev": { 537 | "phpstan/phpstan": "0.12.88", 538 | "phpstan/phpstan-strict-rules": "^0.12.2" 539 | }, 540 | "type": "library", 541 | "autoload": { 542 | "classmap": [ 543 | "./src" 544 | ] 545 | }, 546 | "notification-url": "https://packagist.org/downloads/", 547 | "license": [ 548 | "LGPL-3.0" 549 | ], 550 | "description": "Logging components used by PocketMine-MP and related projects", 551 | "support": { 552 | "issues": "https://github.com/pmmp/Log/issues", 553 | "source": "https://github.com/pmmp/Log/tree/0.4.0" 554 | }, 555 | "time": "2021-06-18T19:08:09+00:00" 556 | }, 557 | { 558 | "name": "pocketmine/math", 559 | "version": "0.4.3", 560 | "source": { 561 | "type": "git", 562 | "url": "https://github.com/pmmp/Math.git", 563 | "reference": "47a243d320b01c8099d65309967934c188111549" 564 | }, 565 | "dist": { 566 | "type": "zip", 567 | "url": "https://api.github.com/repos/pmmp/Math/zipball/47a243d320b01c8099d65309967934c188111549", 568 | "reference": "47a243d320b01c8099d65309967934c188111549", 569 | "shasum": "" 570 | }, 571 | "require": { 572 | "php": "^8.0", 573 | "php-64bit": "*" 574 | }, 575 | "require-dev": { 576 | "phpstan/extension-installer": "^1.0", 577 | "phpstan/phpstan": "1.8.2", 578 | "phpstan/phpstan-strict-rules": "^1.0", 579 | "phpunit/phpunit": "^8.5 || ^9.5" 580 | }, 581 | "type": "library", 582 | "autoload": { 583 | "psr-4": { 584 | "pocketmine\\math\\": "src/" 585 | } 586 | }, 587 | "notification-url": "https://packagist.org/downloads/", 588 | "license": [ 589 | "LGPL-3.0" 590 | ], 591 | "description": "PHP library containing math related code used in PocketMine-MP", 592 | "support": { 593 | "issues": "https://github.com/pmmp/Math/issues", 594 | "source": "https://github.com/pmmp/Math/tree/0.4.3" 595 | }, 596 | "time": "2022-08-25T18:43:37+00:00" 597 | }, 598 | { 599 | "name": "pocketmine/nbt", 600 | "version": "0.3.4", 601 | "source": { 602 | "type": "git", 603 | "url": "https://github.com/pmmp/NBT.git", 604 | "reference": "62c02464c6708b2467c1e1a2af01af09d5114eda" 605 | }, 606 | "dist": { 607 | "type": "zip", 608 | "url": "https://api.github.com/repos/pmmp/NBT/zipball/62c02464c6708b2467c1e1a2af01af09d5114eda", 609 | "reference": "62c02464c6708b2467c1e1a2af01af09d5114eda", 610 | "shasum": "" 611 | }, 612 | "require": { 613 | "php": "^7.4 || ^8.0", 614 | "php-64bit": "*", 615 | "pocketmine/binaryutils": "^0.2.0" 616 | }, 617 | "require-dev": { 618 | "phpstan/extension-installer": "^1.0", 619 | "phpstan/phpstan": "1.10.3", 620 | "phpstan/phpstan-strict-rules": "^1.0", 621 | "phpunit/phpunit": "^9.5" 622 | }, 623 | "type": "library", 624 | "autoload": { 625 | "psr-4": { 626 | "pocketmine\\nbt\\": "src/" 627 | } 628 | }, 629 | "notification-url": "https://packagist.org/downloads/", 630 | "license": [ 631 | "LGPL-3.0" 632 | ], 633 | "description": "PHP library for working with Named Binary Tags", 634 | "support": { 635 | "issues": "https://github.com/pmmp/NBT/issues", 636 | "source": "https://github.com/pmmp/NBT/tree/0.3.4" 637 | }, 638 | "time": "2023-04-10T11:31:20+00:00" 639 | }, 640 | { 641 | "name": "pocketmine/netresearch-jsonmapper", 642 | "version": "v4.2.999", 643 | "source": { 644 | "type": "git", 645 | "url": "https://github.com/pmmp/netresearch-jsonmapper.git", 646 | "reference": "f700806dec756ed825a8200dc2950ead98265956" 647 | }, 648 | "dist": { 649 | "type": "zip", 650 | "url": "https://api.github.com/repos/pmmp/netresearch-jsonmapper/zipball/f700806dec756ed825a8200dc2950ead98265956", 651 | "reference": "f700806dec756ed825a8200dc2950ead98265956", 652 | "shasum": "" 653 | }, 654 | "require": { 655 | "ext-json": "*", 656 | "ext-pcre": "*", 657 | "ext-reflection": "*", 658 | "ext-spl": "*", 659 | "php": ">=7.1" 660 | }, 661 | "replace": { 662 | "netresearch/jsonmapper": "~4.2.0" 663 | }, 664 | "require-dev": { 665 | "phpunit/phpunit": "~7.5 || ~8.0 || ~9.0", 666 | "squizlabs/php_codesniffer": "~3.5" 667 | }, 668 | "type": "library", 669 | "autoload": { 670 | "psr-0": { 671 | "JsonMapper": "src/" 672 | } 673 | }, 674 | "notification-url": "https://packagist.org/downloads/", 675 | "license": [ 676 | "OSL-3.0" 677 | ], 678 | "authors": [ 679 | { 680 | "name": "Christian Weiske", 681 | "email": "cweiske@cweiske.de", 682 | "homepage": "http://github.com/cweiske/jsonmapper/", 683 | "role": "Developer" 684 | } 685 | ], 686 | "description": "Fork of netresearch/jsonmapper with security fixes needed by pocketmine/pocketmine-mp", 687 | "support": { 688 | "email": "cweiske@cweiske.de", 689 | "issues": "https://github.com/cweiske/jsonmapper/issues", 690 | "source": "https://github.com/pmmp/netresearch-jsonmapper/tree/v4.2.999" 691 | }, 692 | "time": "2023-06-01T13:43:01+00:00" 693 | }, 694 | { 695 | "name": "pocketmine/pocketmine-mp", 696 | "version": "5.1.3", 697 | "source": { 698 | "type": "git", 699 | "url": "https://github.com/pmmp/PocketMine-MP.git", 700 | "reference": "2278275505a7f9d768027673e699e6199575c8bc" 701 | }, 702 | "dist": { 703 | "type": "zip", 704 | "url": "https://api.github.com/repos/pmmp/PocketMine-MP/zipball/2278275505a7f9d768027673e699e6199575c8bc", 705 | "reference": "2278275505a7f9d768027673e699e6199575c8bc", 706 | "shasum": "" 707 | }, 708 | "require": { 709 | "adhocore/json-comment": "~1.2.0", 710 | "composer-runtime-api": "^2.0", 711 | "ext-chunkutils2": "^0.3.1", 712 | "ext-crypto": "^0.3.1", 713 | "ext-ctype": "*", 714 | "ext-curl": "*", 715 | "ext-date": "*", 716 | "ext-gmp": "*", 717 | "ext-hash": "*", 718 | "ext-igbinary": "^3.0.1", 719 | "ext-json": "*", 720 | "ext-leveldb": "^0.2.1 || ^0.3.0", 721 | "ext-mbstring": "*", 722 | "ext-morton": "^0.1.0", 723 | "ext-openssl": "*", 724 | "ext-pcre": "*", 725 | "ext-phar": "*", 726 | "ext-pmmpthread": "^6.0.1", 727 | "ext-reflection": "*", 728 | "ext-simplexml": "*", 729 | "ext-sockets": "*", 730 | "ext-spl": "*", 731 | "ext-yaml": ">=2.0.0", 732 | "ext-zip": "*", 733 | "ext-zlib": ">=1.2.11", 734 | "fgrosse/phpasn1": "~2.5.0", 735 | "php": "^8.1", 736 | "php-64bit": "*", 737 | "pocketmine/bedrock-block-upgrade-schema": "~2.2.0+bedrock-1.20.0", 738 | "pocketmine/bedrock-data": "~2.3.0+bedrock-1.20.0", 739 | "pocketmine/bedrock-item-upgrade-schema": "~1.3.0+bedrock-1.20.0", 740 | "pocketmine/bedrock-protocol": "~22.0.0+bedrock-1.20.0", 741 | "pocketmine/binaryutils": "^0.2.1", 742 | "pocketmine/callback-validator": "^1.0.2", 743 | "pocketmine/color": "^0.3.0", 744 | "pocketmine/errorhandler": "^0.6.0", 745 | "pocketmine/locale-data": "~2.19.0", 746 | "pocketmine/log": "^0.4.0", 747 | "pocketmine/math": "^0.4.0", 748 | "pocketmine/nbt": "^0.3.2", 749 | "pocketmine/netresearch-jsonmapper": "~v4.2.999", 750 | "pocketmine/raklib": "^0.15.0", 751 | "pocketmine/raklib-ipc": "^0.2.0", 752 | "pocketmine/snooze": "^0.5.0", 753 | "ramsey/uuid": "~4.7.0", 754 | "symfony/filesystem": "~6.2.0" 755 | }, 756 | "require-dev": { 757 | "phpstan/phpstan": "1.10.16", 758 | "phpstan/phpstan-phpunit": "^1.1.0", 759 | "phpstan/phpstan-strict-rules": "^1.2.0", 760 | "phpunit/phpunit": "^10.1" 761 | }, 762 | "type": "project", 763 | "autoload": { 764 | "files": [ 765 | "src/CoreConstants.php" 766 | ], 767 | "psr-4": { 768 | "pocketmine\\": "src/" 769 | } 770 | }, 771 | "notification-url": "https://packagist.org/downloads/", 772 | "license": [ 773 | "LGPL-3.0" 774 | ], 775 | "description": "A server software for Minecraft: Bedrock Edition written in PHP", 776 | "homepage": "https://pmmp.io", 777 | "support": { 778 | "issues": "https://github.com/pmmp/PocketMine-MP/issues", 779 | "source": "https://github.com/pmmp/PocketMine-MP/tree/5.1.3" 780 | }, 781 | "funding": [ 782 | { 783 | "url": "https://github.com/pmmp/PocketMine-MP#donate", 784 | "type": "custom" 785 | }, 786 | { 787 | "url": "https://www.patreon.com/pocketminemp", 788 | "type": "patreon" 789 | } 790 | ], 791 | "time": "2023-07-01T11:18:10+00:00" 792 | }, 793 | { 794 | "name": "pocketmine/raklib", 795 | "version": "0.15.1", 796 | "source": { 797 | "type": "git", 798 | "url": "https://github.com/pmmp/RakLib.git", 799 | "reference": "79b7b4d1d7516dc6e322514453645ad9452b20ca" 800 | }, 801 | "dist": { 802 | "type": "zip", 803 | "url": "https://api.github.com/repos/pmmp/RakLib/zipball/79b7b4d1d7516dc6e322514453645ad9452b20ca", 804 | "reference": "79b7b4d1d7516dc6e322514453645ad9452b20ca", 805 | "shasum": "" 806 | }, 807 | "require": { 808 | "ext-sockets": "*", 809 | "php": "^8.0", 810 | "php-64bit": "*", 811 | "php-ipv6": "*", 812 | "pocketmine/binaryutils": "^0.2.0", 813 | "pocketmine/log": "^0.3.0 || ^0.4.0" 814 | }, 815 | "require-dev": { 816 | "phpstan/phpstan": "1.9.17", 817 | "phpstan/phpstan-strict-rules": "^1.0" 818 | }, 819 | "type": "library", 820 | "autoload": { 821 | "psr-4": { 822 | "raklib\\": "src/" 823 | } 824 | }, 825 | "notification-url": "https://packagist.org/downloads/", 826 | "license": [ 827 | "GPL-3.0" 828 | ], 829 | "description": "A RakNet server implementation written in PHP", 830 | "support": { 831 | "issues": "https://github.com/pmmp/RakLib/issues", 832 | "source": "https://github.com/pmmp/RakLib/tree/0.15.1" 833 | }, 834 | "time": "2023-03-07T15:10:34+00:00" 835 | }, 836 | { 837 | "name": "pocketmine/raklib-ipc", 838 | "version": "0.2.0", 839 | "source": { 840 | "type": "git", 841 | "url": "https://github.com/pmmp/RakLibIpc.git", 842 | "reference": "26ed56fa9db06e4ca6e8920c0ede2e01e219bb9c" 843 | }, 844 | "dist": { 845 | "type": "zip", 846 | "url": "https://api.github.com/repos/pmmp/RakLibIpc/zipball/26ed56fa9db06e4ca6e8920c0ede2e01e219bb9c", 847 | "reference": "26ed56fa9db06e4ca6e8920c0ede2e01e219bb9c", 848 | "shasum": "" 849 | }, 850 | "require": { 851 | "php": "^8.0", 852 | "php-64bit": "*", 853 | "pocketmine/binaryutils": "^0.2.0", 854 | "pocketmine/raklib": "^0.15.0" 855 | }, 856 | "require-dev": { 857 | "phpstan/phpstan": "1.9.17", 858 | "phpstan/phpstan-strict-rules": "^1.0.0" 859 | }, 860 | "type": "library", 861 | "autoload": { 862 | "psr-4": { 863 | "raklib\\server\\ipc\\": "src/" 864 | } 865 | }, 866 | "notification-url": "https://packagist.org/downloads/", 867 | "license": [ 868 | "GPL-3.0" 869 | ], 870 | "description": "Channel-based protocols for inter-thread/inter-process communication with RakLib", 871 | "support": { 872 | "issues": "https://github.com/pmmp/RakLibIpc/issues", 873 | "source": "https://github.com/pmmp/RakLibIpc/tree/0.2.0" 874 | }, 875 | "time": "2023-02-13T13:40:40+00:00" 876 | }, 877 | { 878 | "name": "pocketmine/snooze", 879 | "version": "0.5.0", 880 | "source": { 881 | "type": "git", 882 | "url": "https://github.com/pmmp/Snooze.git", 883 | "reference": "a86d9ee60ce44755d166d3c7ba4b8b8be8360915" 884 | }, 885 | "dist": { 886 | "type": "zip", 887 | "url": "https://api.github.com/repos/pmmp/Snooze/zipball/a86d9ee60ce44755d166d3c7ba4b8b8be8360915", 888 | "reference": "a86d9ee60ce44755d166d3c7ba4b8b8be8360915", 889 | "shasum": "" 890 | }, 891 | "require": { 892 | "ext-pmmpthread": "^6.0", 893 | "php-64bit": "^8.1" 894 | }, 895 | "require-dev": { 896 | "phpstan/extension-installer": "^1.0", 897 | "phpstan/phpstan": "1.10.3", 898 | "phpstan/phpstan-strict-rules": "^1.0" 899 | }, 900 | "type": "library", 901 | "autoload": { 902 | "psr-4": { 903 | "pocketmine\\snooze\\": "src/" 904 | } 905 | }, 906 | "notification-url": "https://packagist.org/downloads/", 907 | "license": [ 908 | "LGPL-3.0" 909 | ], 910 | "description": "Thread notification management library for code using the pthreads extension", 911 | "support": { 912 | "issues": "https://github.com/pmmp/Snooze/issues", 913 | "source": "https://github.com/pmmp/Snooze/tree/0.5.0" 914 | }, 915 | "time": "2023-05-22T23:43:01+00:00" 916 | }, 917 | { 918 | "name": "ramsey/collection", 919 | "version": "2.0.0", 920 | "source": { 921 | "type": "git", 922 | "url": "https://github.com/ramsey/collection.git", 923 | "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5" 924 | }, 925 | "dist": { 926 | "type": "zip", 927 | "url": "https://api.github.com/repos/ramsey/collection/zipball/a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", 928 | "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", 929 | "shasum": "" 930 | }, 931 | "require": { 932 | "php": "^8.1" 933 | }, 934 | "require-dev": { 935 | "captainhook/plugin-composer": "^5.3", 936 | "ergebnis/composer-normalize": "^2.28.3", 937 | "fakerphp/faker": "^1.21", 938 | "hamcrest/hamcrest-php": "^2.0", 939 | "jangregor/phpstan-prophecy": "^1.0", 940 | "mockery/mockery": "^1.5", 941 | "php-parallel-lint/php-console-highlighter": "^1.0", 942 | "php-parallel-lint/php-parallel-lint": "^1.3", 943 | "phpcsstandards/phpcsutils": "^1.0.0-rc1", 944 | "phpspec/prophecy-phpunit": "^2.0", 945 | "phpstan/extension-installer": "^1.2", 946 | "phpstan/phpstan": "^1.9", 947 | "phpstan/phpstan-mockery": "^1.1", 948 | "phpstan/phpstan-phpunit": "^1.3", 949 | "phpunit/phpunit": "^9.5", 950 | "psalm/plugin-mockery": "^1.1", 951 | "psalm/plugin-phpunit": "^0.18.4", 952 | "ramsey/coding-standard": "^2.0.3", 953 | "ramsey/conventional-commits": "^1.3", 954 | "vimeo/psalm": "^5.4" 955 | }, 956 | "type": "library", 957 | "extra": { 958 | "captainhook": { 959 | "force-install": true 960 | }, 961 | "ramsey/conventional-commits": { 962 | "configFile": "conventional-commits.json" 963 | } 964 | }, 965 | "autoload": { 966 | "psr-4": { 967 | "Ramsey\\Collection\\": "src/" 968 | } 969 | }, 970 | "notification-url": "https://packagist.org/downloads/", 971 | "license": [ 972 | "MIT" 973 | ], 974 | "authors": [ 975 | { 976 | "name": "Ben Ramsey", 977 | "email": "ben@benramsey.com", 978 | "homepage": "https://benramsey.com" 979 | } 980 | ], 981 | "description": "A PHP library for representing and manipulating collections.", 982 | "keywords": [ 983 | "array", 984 | "collection", 985 | "hash", 986 | "map", 987 | "queue", 988 | "set" 989 | ], 990 | "support": { 991 | "issues": "https://github.com/ramsey/collection/issues", 992 | "source": "https://github.com/ramsey/collection/tree/2.0.0" 993 | }, 994 | "funding": [ 995 | { 996 | "url": "https://github.com/ramsey", 997 | "type": "github" 998 | }, 999 | { 1000 | "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", 1001 | "type": "tidelift" 1002 | } 1003 | ], 1004 | "time": "2022-12-31T21:50:55+00:00" 1005 | }, 1006 | { 1007 | "name": "ramsey/uuid", 1008 | "version": "4.7.4", 1009 | "source": { 1010 | "type": "git", 1011 | "url": "https://github.com/ramsey/uuid.git", 1012 | "reference": "60a4c63ab724854332900504274f6150ff26d286" 1013 | }, 1014 | "dist": { 1015 | "type": "zip", 1016 | "url": "https://api.github.com/repos/ramsey/uuid/zipball/60a4c63ab724854332900504274f6150ff26d286", 1017 | "reference": "60a4c63ab724854332900504274f6150ff26d286", 1018 | "shasum": "" 1019 | }, 1020 | "require": { 1021 | "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11", 1022 | "ext-json": "*", 1023 | "php": "^8.0", 1024 | "ramsey/collection": "^1.2 || ^2.0" 1025 | }, 1026 | "replace": { 1027 | "rhumsaa/uuid": "self.version" 1028 | }, 1029 | "require-dev": { 1030 | "captainhook/captainhook": "^5.10", 1031 | "captainhook/plugin-composer": "^5.3", 1032 | "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", 1033 | "doctrine/annotations": "^1.8", 1034 | "ergebnis/composer-normalize": "^2.15", 1035 | "mockery/mockery": "^1.3", 1036 | "paragonie/random-lib": "^2", 1037 | "php-mock/php-mock": "^2.2", 1038 | "php-mock/php-mock-mockery": "^1.3", 1039 | "php-parallel-lint/php-parallel-lint": "^1.1", 1040 | "phpbench/phpbench": "^1.0", 1041 | "phpstan/extension-installer": "^1.1", 1042 | "phpstan/phpstan": "^1.8", 1043 | "phpstan/phpstan-mockery": "^1.1", 1044 | "phpstan/phpstan-phpunit": "^1.1", 1045 | "phpunit/phpunit": "^8.5 || ^9", 1046 | "ramsey/composer-repl": "^1.4", 1047 | "slevomat/coding-standard": "^8.4", 1048 | "squizlabs/php_codesniffer": "^3.5", 1049 | "vimeo/psalm": "^4.9" 1050 | }, 1051 | "suggest": { 1052 | "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", 1053 | "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", 1054 | "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", 1055 | "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", 1056 | "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." 1057 | }, 1058 | "type": "library", 1059 | "extra": { 1060 | "captainhook": { 1061 | "force-install": true 1062 | } 1063 | }, 1064 | "autoload": { 1065 | "files": [ 1066 | "src/functions.php" 1067 | ], 1068 | "psr-4": { 1069 | "Ramsey\\Uuid\\": "src/" 1070 | } 1071 | }, 1072 | "notification-url": "https://packagist.org/downloads/", 1073 | "license": [ 1074 | "MIT" 1075 | ], 1076 | "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", 1077 | "keywords": [ 1078 | "guid", 1079 | "identifier", 1080 | "uuid" 1081 | ], 1082 | "support": { 1083 | "issues": "https://github.com/ramsey/uuid/issues", 1084 | "source": "https://github.com/ramsey/uuid/tree/4.7.4" 1085 | }, 1086 | "funding": [ 1087 | { 1088 | "url": "https://github.com/ramsey", 1089 | "type": "github" 1090 | }, 1091 | { 1092 | "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", 1093 | "type": "tidelift" 1094 | } 1095 | ], 1096 | "time": "2023-04-15T23:01:58+00:00" 1097 | }, 1098 | { 1099 | "name": "symfony/filesystem", 1100 | "version": "v6.2.12", 1101 | "source": { 1102 | "type": "git", 1103 | "url": "https://github.com/symfony/filesystem.git", 1104 | "reference": "b0818e7203e53540f2a5c9a5017d97897df1e9bb" 1105 | }, 1106 | "dist": { 1107 | "type": "zip", 1108 | "url": "https://api.github.com/repos/symfony/filesystem/zipball/b0818e7203e53540f2a5c9a5017d97897df1e9bb", 1109 | "reference": "b0818e7203e53540f2a5c9a5017d97897df1e9bb", 1110 | "shasum": "" 1111 | }, 1112 | "require": { 1113 | "php": ">=8.1", 1114 | "symfony/polyfill-ctype": "~1.8", 1115 | "symfony/polyfill-mbstring": "~1.8" 1116 | }, 1117 | "type": "library", 1118 | "autoload": { 1119 | "psr-4": { 1120 | "Symfony\\Component\\Filesystem\\": "" 1121 | }, 1122 | "exclude-from-classmap": [ 1123 | "/Tests/" 1124 | ] 1125 | }, 1126 | "notification-url": "https://packagist.org/downloads/", 1127 | "license": [ 1128 | "MIT" 1129 | ], 1130 | "authors": [ 1131 | { 1132 | "name": "Fabien Potencier", 1133 | "email": "fabien@symfony.com" 1134 | }, 1135 | { 1136 | "name": "Symfony Community", 1137 | "homepage": "https://symfony.com/contributors" 1138 | } 1139 | ], 1140 | "description": "Provides basic utilities for the filesystem", 1141 | "homepage": "https://symfony.com", 1142 | "support": { 1143 | "source": "https://github.com/symfony/filesystem/tree/v6.2.12" 1144 | }, 1145 | "funding": [ 1146 | { 1147 | "url": "https://symfony.com/sponsor", 1148 | "type": "custom" 1149 | }, 1150 | { 1151 | "url": "https://github.com/fabpot", 1152 | "type": "github" 1153 | }, 1154 | { 1155 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1156 | "type": "tidelift" 1157 | } 1158 | ], 1159 | "time": "2023-06-01T08:29:37+00:00" 1160 | }, 1161 | { 1162 | "name": "symfony/polyfill-ctype", 1163 | "version": "v1.27.0", 1164 | "source": { 1165 | "type": "git", 1166 | "url": "https://github.com/symfony/polyfill-ctype.git", 1167 | "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" 1168 | }, 1169 | "dist": { 1170 | "type": "zip", 1171 | "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", 1172 | "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", 1173 | "shasum": "" 1174 | }, 1175 | "require": { 1176 | "php": ">=7.1" 1177 | }, 1178 | "provide": { 1179 | "ext-ctype": "*" 1180 | }, 1181 | "suggest": { 1182 | "ext-ctype": "For best performance" 1183 | }, 1184 | "type": "library", 1185 | "extra": { 1186 | "branch-alias": { 1187 | "dev-main": "1.27-dev" 1188 | }, 1189 | "thanks": { 1190 | "name": "symfony/polyfill", 1191 | "url": "https://github.com/symfony/polyfill" 1192 | } 1193 | }, 1194 | "autoload": { 1195 | "files": [ 1196 | "bootstrap.php" 1197 | ], 1198 | "psr-4": { 1199 | "Symfony\\Polyfill\\Ctype\\": "" 1200 | } 1201 | }, 1202 | "notification-url": "https://packagist.org/downloads/", 1203 | "license": [ 1204 | "MIT" 1205 | ], 1206 | "authors": [ 1207 | { 1208 | "name": "Gert de Pagter", 1209 | "email": "BackEndTea@gmail.com" 1210 | }, 1211 | { 1212 | "name": "Symfony Community", 1213 | "homepage": "https://symfony.com/contributors" 1214 | } 1215 | ], 1216 | "description": "Symfony polyfill for ctype functions", 1217 | "homepage": "https://symfony.com", 1218 | "keywords": [ 1219 | "compatibility", 1220 | "ctype", 1221 | "polyfill", 1222 | "portable" 1223 | ], 1224 | "support": { 1225 | "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" 1226 | }, 1227 | "funding": [ 1228 | { 1229 | "url": "https://symfony.com/sponsor", 1230 | "type": "custom" 1231 | }, 1232 | { 1233 | "url": "https://github.com/fabpot", 1234 | "type": "github" 1235 | }, 1236 | { 1237 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1238 | "type": "tidelift" 1239 | } 1240 | ], 1241 | "time": "2022-11-03T14:55:06+00:00" 1242 | }, 1243 | { 1244 | "name": "symfony/polyfill-mbstring", 1245 | "version": "v1.27.0", 1246 | "source": { 1247 | "type": "git", 1248 | "url": "https://github.com/symfony/polyfill-mbstring.git", 1249 | "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" 1250 | }, 1251 | "dist": { 1252 | "type": "zip", 1253 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", 1254 | "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", 1255 | "shasum": "" 1256 | }, 1257 | "require": { 1258 | "php": ">=7.1" 1259 | }, 1260 | "provide": { 1261 | "ext-mbstring": "*" 1262 | }, 1263 | "suggest": { 1264 | "ext-mbstring": "For best performance" 1265 | }, 1266 | "type": "library", 1267 | "extra": { 1268 | "branch-alias": { 1269 | "dev-main": "1.27-dev" 1270 | }, 1271 | "thanks": { 1272 | "name": "symfony/polyfill", 1273 | "url": "https://github.com/symfony/polyfill" 1274 | } 1275 | }, 1276 | "autoload": { 1277 | "files": [ 1278 | "bootstrap.php" 1279 | ], 1280 | "psr-4": { 1281 | "Symfony\\Polyfill\\Mbstring\\": "" 1282 | } 1283 | }, 1284 | "notification-url": "https://packagist.org/downloads/", 1285 | "license": [ 1286 | "MIT" 1287 | ], 1288 | "authors": [ 1289 | { 1290 | "name": "Nicolas Grekas", 1291 | "email": "p@tchwork.com" 1292 | }, 1293 | { 1294 | "name": "Symfony Community", 1295 | "homepage": "https://symfony.com/contributors" 1296 | } 1297 | ], 1298 | "description": "Symfony polyfill for the Mbstring extension", 1299 | "homepage": "https://symfony.com", 1300 | "keywords": [ 1301 | "compatibility", 1302 | "mbstring", 1303 | "polyfill", 1304 | "portable", 1305 | "shim" 1306 | ], 1307 | "support": { 1308 | "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" 1309 | }, 1310 | "funding": [ 1311 | { 1312 | "url": "https://symfony.com/sponsor", 1313 | "type": "custom" 1314 | }, 1315 | { 1316 | "url": "https://github.com/fabpot", 1317 | "type": "github" 1318 | }, 1319 | { 1320 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1321 | "type": "tidelift" 1322 | } 1323 | ], 1324 | "time": "2022-11-03T14:55:06+00:00" 1325 | } 1326 | ], 1327 | "packages-dev": [ 1328 | { 1329 | "name": "phpstan/extension-installer", 1330 | "version": "1.3.1", 1331 | "source": { 1332 | "type": "git", 1333 | "url": "https://github.com/phpstan/extension-installer.git", 1334 | "reference": "f45734bfb9984c6c56c4486b71230355f066a58a" 1335 | }, 1336 | "dist": { 1337 | "type": "zip", 1338 | "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/f45734bfb9984c6c56c4486b71230355f066a58a", 1339 | "reference": "f45734bfb9984c6c56c4486b71230355f066a58a", 1340 | "shasum": "" 1341 | }, 1342 | "require": { 1343 | "composer-plugin-api": "^2.0", 1344 | "php": "^7.2 || ^8.0", 1345 | "phpstan/phpstan": "^1.9.0" 1346 | }, 1347 | "require-dev": { 1348 | "composer/composer": "^2.0", 1349 | "php-parallel-lint/php-parallel-lint": "^1.2.0", 1350 | "phpstan/phpstan-strict-rules": "^0.11 || ^0.12 || ^1.0" 1351 | }, 1352 | "type": "composer-plugin", 1353 | "extra": { 1354 | "class": "PHPStan\\ExtensionInstaller\\Plugin" 1355 | }, 1356 | "autoload": { 1357 | "psr-4": { 1358 | "PHPStan\\ExtensionInstaller\\": "src/" 1359 | } 1360 | }, 1361 | "notification-url": "https://packagist.org/downloads/", 1362 | "license": [ 1363 | "MIT" 1364 | ], 1365 | "description": "Composer plugin for automatic installation of PHPStan extensions", 1366 | "support": { 1367 | "issues": "https://github.com/phpstan/extension-installer/issues", 1368 | "source": "https://github.com/phpstan/extension-installer/tree/1.3.1" 1369 | }, 1370 | "time": "2023-05-24T08:59:17+00:00" 1371 | }, 1372 | { 1373 | "name": "phpstan/phpstan", 1374 | "version": "1.10.25", 1375 | "source": { 1376 | "type": "git", 1377 | "url": "https://github.com/phpstan/phpstan.git", 1378 | "reference": "578f4e70d117f9a90699324c555922800ac38d8c" 1379 | }, 1380 | "dist": { 1381 | "type": "zip", 1382 | "url": "https://api.github.com/repos/phpstan/phpstan/zipball/578f4e70d117f9a90699324c555922800ac38d8c", 1383 | "reference": "578f4e70d117f9a90699324c555922800ac38d8c", 1384 | "shasum": "" 1385 | }, 1386 | "require": { 1387 | "php": "^7.2|^8.0" 1388 | }, 1389 | "conflict": { 1390 | "phpstan/phpstan-shim": "*" 1391 | }, 1392 | "bin": [ 1393 | "phpstan", 1394 | "phpstan.phar" 1395 | ], 1396 | "type": "library", 1397 | "autoload": { 1398 | "files": [ 1399 | "bootstrap.php" 1400 | ] 1401 | }, 1402 | "notification-url": "https://packagist.org/downloads/", 1403 | "license": [ 1404 | "MIT" 1405 | ], 1406 | "description": "PHPStan - PHP Static Analysis Tool", 1407 | "keywords": [ 1408 | "dev", 1409 | "static analysis" 1410 | ], 1411 | "support": { 1412 | "docs": "https://phpstan.org/user-guide/getting-started", 1413 | "forum": "https://github.com/phpstan/phpstan/discussions", 1414 | "issues": "https://github.com/phpstan/phpstan/issues", 1415 | "security": "https://github.com/phpstan/phpstan/security/policy", 1416 | "source": "https://github.com/phpstan/phpstan-src" 1417 | }, 1418 | "funding": [ 1419 | { 1420 | "url": "https://github.com/ondrejmirtes", 1421 | "type": "github" 1422 | }, 1423 | { 1424 | "url": "https://github.com/phpstan", 1425 | "type": "github" 1426 | }, 1427 | { 1428 | "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", 1429 | "type": "tidelift" 1430 | } 1431 | ], 1432 | "time": "2023-07-06T12:11:37+00:00" 1433 | }, 1434 | { 1435 | "name": "phpstan/phpstan-strict-rules", 1436 | "version": "1.5.1", 1437 | "source": { 1438 | "type": "git", 1439 | "url": "https://github.com/phpstan/phpstan-strict-rules.git", 1440 | "reference": "b21c03d4f6f3a446e4311155f4be9d65048218e6" 1441 | }, 1442 | "dist": { 1443 | "type": "zip", 1444 | "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/b21c03d4f6f3a446e4311155f4be9d65048218e6", 1445 | "reference": "b21c03d4f6f3a446e4311155f4be9d65048218e6", 1446 | "shasum": "" 1447 | }, 1448 | "require": { 1449 | "php": "^7.2 || ^8.0", 1450 | "phpstan/phpstan": "^1.10" 1451 | }, 1452 | "require-dev": { 1453 | "nikic/php-parser": "^4.13.0", 1454 | "php-parallel-lint/php-parallel-lint": "^1.2", 1455 | "phpstan/phpstan-deprecation-rules": "^1.1", 1456 | "phpstan/phpstan-phpunit": "^1.0", 1457 | "phpunit/phpunit": "^9.5" 1458 | }, 1459 | "type": "phpstan-extension", 1460 | "extra": { 1461 | "phpstan": { 1462 | "includes": [ 1463 | "rules.neon" 1464 | ] 1465 | } 1466 | }, 1467 | "autoload": { 1468 | "psr-4": { 1469 | "PHPStan\\": "src/" 1470 | } 1471 | }, 1472 | "notification-url": "https://packagist.org/downloads/", 1473 | "license": [ 1474 | "MIT" 1475 | ], 1476 | "description": "Extra strict and opinionated rules for PHPStan", 1477 | "support": { 1478 | "issues": "https://github.com/phpstan/phpstan-strict-rules/issues", 1479 | "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.5.1" 1480 | }, 1481 | "time": "2023-03-29T14:47:40+00:00" 1482 | } 1483 | ], 1484 | "aliases": [], 1485 | "minimum-stability": "stable", 1486 | "stability-flags": [], 1487 | "prefer-stable": false, 1488 | "prefer-lowest": false, 1489 | "platform": { 1490 | "ext-igbinary": "*" 1491 | }, 1492 | "platform-dev": [], 1493 | "plugin-api-version": "2.2.0" 1494 | } 1495 | --------------------------------------------------------------------------------