Skip to content

Instantly share code, notes, and snippets.

View jasonw4331's full-sized avatar

Jason Wynn jasonw4331

View GitHub Profile
<?php
use pocketmine\plugin\PluginBase;
use pocketmine\Server;
/**
* This class is deliberately meant to be silly
* Class SpoonDetector
*/
class SpoonDetector{
@jasonw4331
jasonw4331 / Purpur.php
Last active May 25, 2017 13:40
A script to allow the addition of Purpur in the creative inventory
<?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{
@jasonw4331
jasonw4331 / InvClear.php
Last active July 25, 2017 14:50
PMMP plugin script that clears inventories on player quit for UHC
<?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{
@jasonw4331
jasonw4331 / CancelFrame.php
Created July 27, 2017 03:06
A plugin script which prevents certain players from accessing Item Frames
<?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{
@jasonw4331
jasonw4331 / ConsoleChat.php
Last active July 29, 2017 13:34
Allow the console to chat like a normal player
<?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 {
@jasonw4331
jasonw4331 / NoDamageTNT.php
Last active August 29, 2017 19:34
A plugin script which makes TNT unable to damage players after exploding
<?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 {
@jasonw4331
jasonw4331 / PlayerIPLocker.php
Last active September 8, 2017 21:40
A PocketMine script to prevent players from joining using a different IP than the ones allowed
<?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 {
@jasonw4331
jasonw4331 / dimensions.php
Last active June 17, 2019 00:30
Allows working dimensions to exist in PMMP
<?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 {
@jasonw4331
jasonw4331 / PngToPlayer.php
Created October 15, 2017 16:35 — forked from robske110/PngToPlayer.php
Set a player's skin in PMMP
<?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);
@jasonw4331
jasonw4331 / BlockItemList.md
Created November 16, 2017 17:42 — forked from MinecrafterJPN/BlockItemList.md
Minecraft PE Block / Item List

Block List

ID => BlockName

		0 => "Air"
		1 => "Stone"
		2 => "Grass"
		3 => "Dirt"
		4 => "Cobblestone"

5 => "WoodenPlank"