0 => "Air"
1 => "Stone"
2 => "Grass"
3 => "Dirt"
4 => "Cobblestone"
5 => "WoodenPlank"
| var net = require('net'); | |
| var client = net.connect({path: '\\\\.\\pipe\\' + process.argv[2] + '-console'}, function() | |
| { | |
| client.write(process.argv[3] + '\n'); | |
| process.exit(0); | |
| }); |
| <?php | |
| $world = $this->getServer()->getDefaultLevel(); | |
| $radius = 80; | |
| $total = (($radius * 2) + 1) ** 2; | |
| $count = 0; | |
| for($chunkX = -$radius; $chunkX <= $radius; ++$chunkX){ | |
| for($chunkZ = -$radius; $chunkZ <= $radius; ++$chunkZ){ | |
| $chunk = $world->getChunk($chunkX, $chunkZ, false); | |
| if($chunk instanceof \pocketmine\level\format\FullChunk and $chunk->isPopulated()){ | |
| $tiles = []; |
| javascript | |
| ES6ValidationInspection | |
| JSAccessibilityCheckInspection | |
| JSBitwiseOperatorUsageInspection | |
| JSCheckFunctionSignaturesInspection | |
| JSClosureCompilerSyntaxInspection | |
| JSCommentMatchesSignatureInspection | |
| JSComparisonWithNaNInspection | |
| JSConsecutiveCommasInArrayLiteralInspection |
| <?php | |
| /** | |
| * This file is an example of a compressed plaintext plugin format for PocketMine | |
| * It's aimed towards easy scripting, but not for normal plugin development. | |
| * | |
| * This kind of plugin won't be able to embed/load resources, | |
| * nor have access to some features like fast permission/command integration. | |
| * | |
| * This first comment is used to define the properties like on plugin.yml, |
| name: Temp | |
| author: "jasonwynn10" | |
| version: 0.1.0 | |
| api: | |
| - 2.1.0 | |
| - 3.0.0-ALPHA1 | |
| - 3.0.0-ALPHA2 | |
| - 3.0.0-ALPHA3 | |
| - 3.0.0-ALPHA4 | |
| - 3.0.0-ALPHA5 |
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
| <?php | |
| class ReadOnlyFileStreamWrapper{ | |
| const SCHEME_RAW = "pmmpreadonly"; | |
| const SCHEME = self::SCHEME_RAW . "://"; | |
| private $realPointer; | |
| public function stream_open($path, $mode){ | |
| assert(substr($path, 0, strlen(self::SCHEME)) === self::SCHEME); |
| <?php | |
| use pocketmine\plugin\PluginBase; | |
| use pocketmine\Server; | |
| /** | |
| * This class is deliberately meant to be silly | |
| * Class SpoonDetector | |
| */ | |
| class SpoonDetector{ |