-
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!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use pocketmine\plugin\PluginBase; | |
use pocketmine\Server; | |
/** | |
* This class is deliberately meant to be silly | |
* Class SpoonDetector | |
*/ | |
class SpoonDetector{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use pocketmine\plugin\PluginBase; | |
use pocketmine\Server; | |
/** | |
* This class is deliberately meant to be silly | |
* Class SpoonDetector | |
*/ | |
class SpoonDetector{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript | |
ES6ValidationInspection | |
JSAccessibilityCheckInspection | |
JSBitwiseOperatorUsageInspection | |
JSCheckFunctionSignaturesInspection | |
JSClosureCompilerSyntaxInspection | |
JSCommentMatchesSignatureInspection | |
JSComparisonWithNaNInspection | |
JSConsecutiveCommasInArrayLiteralInspection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$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 = []; |