Skip to content
This repository was archived by the owner on Dec 11, 2018. It is now read-only.

Commit

Permalink
reborn
Browse files Browse the repository at this point in the history
  • Loading branch information
Frago9876543210 committed Jan 8, 2018
1 parent eb15f59 commit c894df5
Show file tree
Hide file tree
Showing 16 changed files with 746 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bin*/*
.idea/
vendor/*
config.yml
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# MCPE-Proxy
Simple proxy for Minecraft Bedrock Edition.
## How to install?
- Download PHP binary for you OS.
- Extract the PHP binary.
- Install composer and all it's dependencies.
- Run it.
- ___Do not forget edit config.yml___
49 changes: 49 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "Frago9876543210/MCPE-Proxy",
"description": "Proxy for a Minecraft PE. It allows you to intercept packets and send packets.",
"type": "project",
"homepage": "https://github.com/Frago9876543210/MCPE-Proxy",
"license": "GPL-3.0",
"require": {
"php": ">=7.2.0RC3",
"ext-bcmath": "*",
"ext-curl": "*",
"ext-hash": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-pcre": "*",
"ext-phar": "*",
"ext-pthreads": ">=3.1.7dev",
"ext-reflection": "*",
"ext-sockets": "*",
"ext-spl": "*",
"ext-yaml": ">=2.0.0",
"ext-zip": "*",
"ext-zlib": ">=1.2.11",
"pmmp/raklib": "dev-master#29ab14d5d8640a8ee359ce315b083a129e72db4a",
"pmmp/pocketmine-spl": "^0.1.0",
"pmmp/pocketmine-mp": "dev-master"
},
"autoload": {
"psr-0": {
"": [
"src"
]
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/pmmp/RakLib"
},
{
"type": "vcs",
"url": "https://github.com/pmmp/PocketMine-SPL"
},
{
"type": "vcs",
"url": "https://github.com/pmmp/PocketMine-MP"
}
]
}
162 changes: 162 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions plugins/Example/plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: Example
main: Frago9876543210\Example\Main
33 changes: 33 additions & 0 deletions plugins/Example/src/Frago9876543210/Example/Main.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

declare(strict_types=1);

namespace Frago9876543210\Example;


use pocketmine\network\mcpe\protocol\DataPacket;
use proxy\plugin\Plugin;
use proxy\utils\Log;

class Main extends Plugin{
/**
* Called when the plugin is enabled
*/
public function onEnable() : void{
Log::Warn("I am loaded!");
}

/**
* @param DataPacket $packet
*/
public function handleServerDataPacket(DataPacket $packet) : void{
Log::Success(get_class($packet));
}

/**
* @param DataPacket $packet
*/
public function handleClientDataPacket(DataPacket $packet) : void{
Log::Error(get_class($packet));
}
}
Loading

0 comments on commit c894df5

Please sign in to comment.