Overview

Namespaces

  • aliuly
    • common
      • selectors
    • loader
  • xPaw

Classes

  • ArmorItems
  • BasicCli
  • BasicHelp
  • BasicPlugin
  • ChatSession
  • Cmd
  • CmdSelector
  • ExpandVars
  • FastTransfer
  • FileUtils
  • FreezeSession
  • GetMotd
  • GetMotdAsyncTask
  • InvisibleSession
  • InvUtils
  • ItemName
  • mc
  • mc2
  • MoneyAPI
  • MPMU
  • Npc
  • PermUtils
  • PluginAsyncTask
  • PluginCallbackTask
  • PMScript
  • QueryAsyncTask
  • Rcon
  • RconTask
  • Session
  • ShieldSession
  • ShoppingCart
  • SignUtils
  • SkinUtils
  • SpySession
  • SubCommandMap
  • TPUtils
  • Overview
  • Namespace
  • Class

Class QueryAsyncTask

A shortcut for doing a Query in the background.

This is a class that allows you to query one host in the background.

Usage: new QueryAsyncTask($thisPlugin,"queryResults",$host,$port)

And the method will be called when the query finishes.

pocketmine\scheduler\AsyncTask
Extended by aliuly\common\PluginAsyncTask
Extended by aliuly\common\QueryAsyncTask
Namespace: aliuly\common
Located at aliuly/common/QueryAsyncTask.php
Methods summary
public
# __construct( pocketmine\plugin\Plugin $owner, str $callable, str $host, integer $port = 19132, array $args = [] )

Parameters

$owner
$callable
method from $owner to call
$host
host to query
$port
port of host to query
$args
arguments to pass to callback method

Overrides

aliuly\common\PluginAsyncTask::__construct()
public
# onRun( )
Methods inherited from aliuly\common\PluginAsyncTask
onCompletion()
Properties summary
protected $host
#
protected $port
#
Properties inherited from aliuly\common\PluginAsyncTask
$args, $callable, $owner
API documentation generated by ApiGen