mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
Merge commit '0537c66849b307465159306981bad78ba902f30b'
# Conflicts: # resources/vanilla # src/scheduler/BulkCurlTask.php
This commit is contained in:
commit
9b9b955762
@ -43,6 +43,8 @@ class BulkCurlTask extends AsyncTask{
|
||||
* $operations accepts an array of arrays. Each member array must contain a string mapped to "page", and optionally,
|
||||
* "timeout", "extraHeaders" and "extraOpts". Documentation of these options are same as those in
|
||||
* {@link Utils::simpleCurl}.
|
||||
*
|
||||
* @param mixed[][] $operations
|
||||
*/
|
||||
public function __construct(array $operations){
|
||||
$this->operations = serialize($operations);
|
||||
|
@ -52,6 +52,9 @@ class SendUsageTask extends AsyncTask{
|
||||
/** @var string */
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @param string[] $playerList
|
||||
*/
|
||||
public function __construct(Server $server, int $type, array $playerList = []){
|
||||
$endpoint = "http://" . $server->getProperty("anonymous-statistics.host", "stats.pocketmine.net") . "/";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user