This repository was archived by the owner on Dec 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb15f59
commit c894df5
Showing
16 changed files
with
746 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bin*/* | ||
.idea/ | ||
vendor/* | ||
config.yml |
This file contains 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
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___ |
This file contains 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
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" | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name: Example | ||
main: Frago9876543210\Example\Main |
This file contains 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
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)); | ||
} | ||
} |
Oops, something went wrong.