Website | (Hyperlinked) Name |
---|---|
GMail | sofe2038@gmail.com |
GitHub | SOF3 |
PocketMine Forums | SOFe |
PhpFiddle | PhpFiddle |
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
RewriteRule "^/([A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9\-])?)/([A-Za-z0-9_\-]+)(/([^\.]+))?\.(zip|tar|gz|phar|php|pmf)" /index.php?username=$1&repo=$3&version=$5&extension=$6 |
For 4 people:
1,2;3,4
1,3;2,4
1,4;2,3
For 6 people:
1,2;3,4;5,6
1,3;2,5;4,6
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
<?php | |
class ReadStreamTask extends AsyncTask{ | |
public function __construct(string $host, CommandSender $sender){ // Step 1 | |
$this->host = $host; | |
parent::__construct($sender); | |
} | |
public function onRun(){ | |
$socket = fsockopen($this->host); // Step 2 |
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
--- | |
name: ChatPopSound | |
author: PEMapModder | |
version: "1.0" | |
api: | |
- 1.12.0 | |
main: PEMapModder\ChatPopSound\Main | |
commands: [] | |
permissions: [] | |
... |
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
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 |
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
<?php | |
class SendMessageTask extends AsyncTask{ | |
public function __construct(PluginMain $mainClass, string $url){ | |
parent::__construct($mainClass); | |
$this->url = $url; | |
} | |
public function onRun(){ | |
$this->setResult(Utils::getURL($this->data)); | |
} |
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
<?php | |
class MigrateDatabaseTask extends AsyncTask{ | |
public function __construct(MigrateProgress $progress){ | |
parent::__construct($progress); | |
} | |
public function onRun(){ | |
$input = new InputDataIterator(); | |
$output = new OutputWriter(); | |
foreach($input as $datum){ |
This document explains the mechanism in OrgManager.
This plugin aims to provide an API that generalizes the organization mechanism in organization-based plugins, such as plugins for factions, plugins for teams, plugins for chat channels, etc.
There can be many types of organizations, as defined by plugins. While all types of organizations have the same basic mechanism, the following are same within each type but could be different between different types:
- Type ID: Each type is identified by a type ID constant. This should be prefixed by the identifier of the plugin that declares it, e.g.
orgmanager.simpleteam
. The type ID must match the regex/^[a-z0-9\-](\.[a-z0-9\-])+$/
.
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
<?php | |
class ReadOnlyFileStreamWrapper{ | |
const SCHEME_RAW = "pmmpreadonly"; | |
const SCHEME = self::SCHEME_RAW . "://"; | |
private $realPointer; | |
public function stream_open($path, $mode){ | |
assert(substr($path, 0, strlen(self::SCHEME)) === self::SCHEME); |
OlderNewer