Skip to content

Instantly share code, notes, and snippets.

@PEMapModder
PEMapModder / LegionPE user commands.md
Created January 17, 2015 16:55
LegionPE User Commands

LegionPE User Commands

/auth

Usage: /auth <option> <value>

Description: change your auth settings

Option Value

Source: http://www.cprogramming.com/tutorial/lesson12.html

Let's look at these different access restrictions for a moment. Why would you want to declare something private instead of public? The idea is that some parts of the class are intended to be internal to the class--only for the purpose of implementing features. On the other hand, some parts of the class are supposed to be available to anyone using the class--these are the public class functions. Think of a class as though it were an appliance like a microwave: the public parts of the class correspond to the parts of the microwave that you can use on an everyday basis--the keypad, the start button, and so forth. On the other hand, some parts of the microwave are not easily accessible, but they are no less important--it would be hard to get at the microwave generator. These would correspond to the protected or private parts of the class--the things that are necessary for the class to function, but that nobody who uses the class should need to know abo

<?php
require_once("readline.php");
$thread = new ConsoleThread;
$thread->start();
while(true){
sleep(10);
echo "I am still alive!" . PHP_EOL;
}
class ConsoleThread extends Thread{
public function run(){
@PEMapModder
PEMapModder / LegionPE importance ranks perks.md
Created February 26, 2015 15:26
LegionPE Donator/VIP ranks and perks

LegionPE Donator/VIP ranks and perks

Ranks

Name Price
Donator $3
Donator+ $6
VIP $9
@PEMapModder
PEMapModder / LegionPE importance ranks perks.md
Created February 26, 2015 15:26
LegionPE Donator/VIP ranks and perks

LegionPE Donator/VIP ranks and perks

Ranks

Name Price
Donator $3
Donator+ $6
VIP $9
@PEMapModder
PEMapModder / LegionPE importance ranks perks.md
Created February 26, 2015 15:26
LegionPE Donator/VIP ranks and perks

LegionPE Donator/VIP ranks and perks

Ranks

Name Price
Donator $3
Donator+ $6
VIP $9
@PEMapModder
PEMapModder / SpleefArena.php
Created May 25, 2015 15:52
LegionPE plugin source code (spleef part only)
<?php
namespace legionpe\games\spleef;
use legionpe\config\Settings;
use pocketmine\inventory\PlayerInventory;
use pocketmine\item\Item;
use pocketmine\item\Snowball;
class SpleefArena{
<?php
@define("STDIN", fopen("php://stdin", "rt"));
function query($query){
echo $query;
return trim(fgets($query));
}
function out($message){
echo date("[H:i:s] ") . $message . PHP_EOL;
}
function quit($message, $code = 2){
@PEMapModder
PEMapModder / theta ks changes.md
Created July 2, 2015 14:52
LegionPE Theta | Kill streak changes
  • Kill streaks will get saved over sessions, i.e. server restarts and client crashes (only if you don't get killed in the 10-second timeout!) will no longer reset your kill streaks.
  • Kill streaks will be reset if you haven't killed anyone over a certain period of time (period is yet to be confirmed, but probably like 20 seconds)
  • To avoid PvP logging and similar activities, kill streaks are going to be reset, if any of the following happens within 15 seconds after being attacked by a non-teammate and not killing anyone (not necessarily your attacker) before these happen:
    • Getting a teleport request accepted
    • Leaving the game
  • Requesting a transfer to another game
# Log generated by PacketLogger 1.1.0 in PocketMine-MP 1.5dev-245 for Minecraft: PE v0.11.0 alpha (protocol #27)
Player: pemapmodder, clientId 1697512888 from [/14.199.247.137:51550
Start time: 2015-07-17T07:37:21-04:00
[Server -> Client 0xaa] ContainerSetContentPacket (length 1276)
0000 aa 79 00 fe 00 04 01 00 00 00 62 01 00 00 00 62 .y........b....b
0010 01 00 01 00 62 01 00 02 00 62 01 00 03 00 30 01 ....b....b....0.
0020 00 00 00 05 01 00 00 00 05 01 00 01 00 05 01 00 ................
0030 02 00 05 01 00 03 00 05 01 00 04 00 05 01 00 05 ................