This file contains hidden or 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 | |
namespace Encritary; | |
use pocketmine\entity\Entity; | |
use pocketmine\entity\Villager; | |
use pocketmine\event\Listener; | |
use pocketmine\event\player\PlayerInteractEvent; | |
use pocketmine\event\player\PlayerQuitEvent; | |
use pocketmine\event\server\DataPacketReceiveEvent; |
This file contains hidden or 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 | |
namespace Encritary; | |
use pocketmine\entity\Entity; | |
use pocketmine\entity\Villager; | |
use pocketmine\event\Listener; | |
use pocketmine\event\player\PlayerInteractEvent; | |
use pocketmine\event\player\PlayerQuitEvent; | |
use pocketmine\event\server\DataPacketReceiveEvent; |
This file contains hidden or 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
2017-12-26 10:30:10,034 DEBUG MiNET.Client.MiNetClient - PlayerEquipment: Entity ID: 19, Selected Slot: 9, Slot: 0, Item ID: 0 | |
2017-12-26 10:30:10,034 DEBUG MiNET.Client.MiNetClient - > Receive: 13 (0x0d): McpeAddEntity | |
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Entity ID: -4294967290 | |
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - McpeAddEntity Runtime Entity ID: 4 | |
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Entity Type: 2118423 - 0x205317 | |
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Entity Family: 83 - 0x53 | |
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Entity Type ID: 23 - 0x17 Horse | |
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - X: 781.3013 | |
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Y: 4 | |
2017-12-26 10:30:10,048 DEBUG MiNET.Client.MiNetClient - Z: 11.02353 |
This file contains hidden or 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 Skin{ | |
public static function getTextureFromFile(string $filename) : string{ | |
$im = imagecreatefrompng($filename); | |
list($width, $height) = getimagesize($filename); | |
$bytes = ""; | |
for($y = 0; $y < $height; $y++){ | |
for($x = 0; $x < $width; $x++){ | |
$code = imagecolorat($im, $x, $y); | |
$bytes .= chr(($code >> 16) & 0xff) . chr(($code >> 8) & 0xff) . chr(($code >> 16) & 0xff) . ($code >> 24) & 0xff; |
This file contains hidden or 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 | |
declare(strict_types=1); | |
namespace test; | |
use pocketmine\entity\Skin; | |
use pocketmine\event\Listener; | |
use pocketmine\event\player\PlayerChatEvent; |
This file contains hidden or 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 | |
/** | |
* Script for get info from target server | |
* @link https://github.com/Frago9876543210 | |
* @author Frago9876543210 | |
*/ | |
declare(strict_types=1); |
This file contains hidden or 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
using MiNET.Items; | |
using MiNET.Net; | |
using MiNET.Plugins; | |
using MiNET.Plugins.Attributes; | |
using MiNET.Utils; | |
using TestPlugin.Player; | |
namespace GuiPlugin | |
{ | |
[Plugin] |
This file contains hidden or 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 contains hidden or 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
{1: {'answers': [{'answer': 'here is the answer', | |
'bestof_question': [], | |
'created': datetime.datetime(2017, 8, 19, 2, 41, 58), | |
'id': 1, | |
'updated': datetime.datetime(2017, 8, 19, 2, 41, 58)}], | |
'bestanswer': None, | |
'created': datetime.datetime(2017, 8, 19, 2, 41, 58), | |
'id': 1, | |
'statusid': {'Name': 'Example', 'id': 1}, | |
'tags': [], |