Skip to content

Instantly share code, notes, and snippets.

View Muqsit's full-sized avatar
👑
A beacon of hope.

Muqsit Muqsit

👑
A beacon of hope.
View GitHub Profile
@Muqsit
Muqsit / economy.json
Created February 3, 2020 05:12
economy config template
[
{
"state": {
"type": "VANILLA",
"value": "COOKED_PORKCHOP"
},
"price": {
"buy": {
"price": 250,
"count": 2
@Muqsit
Muqsit / HeldItemListener.php
Created February 1, 2020 08:57
held item listener
<?php
declare(strict_types=1);
namespace cosmicpe\scoreboard\entry\listener;
use pocketmine\inventory\Inventory;
use pocketmine\inventory\InventoryChangeListener;
use pocketmine\inventory\PlayerInventory;
use pocketmine\item\Item;
<?php
declare(strict_types=1);
/**
* @name mobbspawner
* @main muqsit\mobspawner\Main
* @api 4.0.0
* @version 0.0.1
*/
@Muqsit
Muqsit / MobSpawnerPlugin.php
Created January 25, 2020 11:56
right click stick on ground
<?php
declare(strict_types=1);
/**
* @name mobbspawner
* @main muqsit\mobspawner\Main
* @api 4.0.0
* @version 0.0.1
*/
<?php
require "vendor/autoload.php";
use pocketmine\snooze\SleeperNotifier;
use pocketmine\snooze\SleeperHandler;
class MyThread extends \Thread{
private $notifier;
@Muqsit
Muqsit / t.php
Last active January 21, 2020 11:25
sample
<?php
final class BlockDataChunk{
/** @var LevelDB */
private $database;
/** @var BigEndianNbtSerializer */
private $serializer;
@Muqsit
Muqsit / imtest.php
Created January 20, 2020 15:52
InvMenu v3.0.0 API 3.0 test
<?php
declare(strict_types=1);
/**
* @name im-test
* @main muqsit\imtest\IMTest
* @version 0.0.1
* @api 3.0.0
* @description Script plugin to test InvMenu
@Muqsit
Muqsit / test-remove-param-isadmin.php
Last active January 15, 2020 11:45
test-remove-param-isadmin.php
<?php
/**
* @name test-remove-param-isadmin
* @main muqsit\trpi\Main
* @version 0.0.1
* @api 4.0.0
* @description Script plugin to test a pull request
* @author Muqsit
*/
@Muqsit
Muqsit / pistonstuff.md
Last active January 11, 2020 00:48
piston dump
Block Behaviour
ActivatorRail Breaks
Anvil Movable if tile not present
Banner Movable if tile not present
Bedrock Movable if tile not present
Bed Movable if tile not present
Beetroot Breaks
BlueIce Movable if tile not present
BoneBlock Movable if tile not present
@Muqsit
Muqsit / test.php
Created January 5, 2020 21:01
SQLite3 in-memory db vs Server::getPlayer() performance
<?php
declare(strict_types=1);
require "vendor/autoload.php";
use pocketmine\utils\UUID;
final class Server{