0 => "Air"
1 => "Stone"
2 => "Grass"
3 => "Dirt"
4 => "Cobblestone"
5 => "WoodenPlank"
| <?php | |
| use pocketmine\plugin\PluginBase; | |
| use pocketmine\Server; | |
| /** | |
| * This class is deliberately meant to be silly | |
| * Class SpoonDetector | |
| */ | |
| class SpoonDetector{ |
| <?php | |
| /** | |
| * @name PurPur | |
| * @main jasonwynn10\Purpur\MainClass | |
| * @version 0.1.0 | |
| * @api 3.0.0-ALPHA5 | |
| * @description A script to allow the addition of Purpur in the creative inventory | |
| * @author jasonwynn10 | |
| */ | |
| namespace jasonwynn10\Purpur{ |
| <?php | |
| /** | |
| * @name InvClear | |
| * @main jasonwynn10\InvClear\MainClass | |
| * @version 0.1.0 | |
| * @api 3.0.0-ALPHA5 | |
| * @description A plugin script that clears inventories on player quit for UHC | |
| * @author jasonwynn10 | |
| */ | |
| namespace jasonwynn10\InvClear{ |
| <?php | |
| /** | |
| * @name CancelFrame | |
| * @main jasonwynn10\CancelFrame\MainClass | |
| * @version 0.1.0 | |
| * @api 3.0.0-ALPHA7 | |
| * @description A plugin script which prevents certain players from accessing Item Frames | |
| * @author jasonwynn10 | |
| */ | |
| namespace jasonwynn10\CancelFrame{ |
| <?php | |
| /** | |
| * @name ConsoleChat | |
| * @main jasonwynn10\ConsoleChat\MainClass | |
| * @version 0.1.0 | |
| * @api 3.0.0-ALPHA7 | |
| * @description A plugin script which allows the console to chat as a normal player | |
| * @author jasonwynn10 | |
| */ | |
| namespace jasonwynn10\ConsoleChat { |
| <?php | |
| /** | |
| * @name NoDamageTNT | |
| * @main jasonwynn10\NoDamageTNT\Main | |
| * @version 0.1.0 | |
| * @api 3.0.0-ALPHA7 | |
| * @description A plugin script which makes TNT unable to damage entities after exploding | |
| * @author jasonwynn10 | |
| */ | |
| namespace jasonwynn10\NoDamageTNT { |
| <?php | |
| /** | |
| * @name PlayerIPLock | |
| * @main jasonwynn10\PlayerIPLock\Main | |
| * @version 0.1.0 | |
| * @api 3.0.0-ALPHA7 | |
| * @description A PocketMine plugin script to prevent players from joining using a different IP than the ones allowed | |
| * @author jasonwynn10 | |
| */ | |
| namespace jasonwynn10\PlayerIPLock { |
| <?php | |
| /** | |
| * @name Dimensions | |
| * @main jasonwynn10\Dimensions\Main | |
| * @version 0.1.0 | |
| * @api 3.0.0-ALPHA9 | |
| * @description A plugin script which allows working dimensions to exist in PMMP's PocketMine-MP | |
| * @author jasonwynn10 | |
| */ | |
| namespace jasonwynn10\Dimensions { |
| <?php | |
| $path = 'your/path/to/skin.png'; | |
| $img = @imagecreatefrompng($path); | |
| $bytes = ''; | |
| $l = (int) @getimagesize($path)[1]; | |
| for ($y = 0; $y < $l; $y++) { | |
| for ($x = 0; $x < 64; $x++) { | |
| $rgba = @imagecolorat($img, $x, $y); |