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 TPUtils

Telepoert Utilities

Abstract
Namespace: aliuly\common
Located at aliuly/common/TPUtils.php
Methods summary
public static boolean
# tpNearBy( pocketmine\Player $player, pocketmine\level\Position $target, integer $rand = 3, integer|null $dist = null )

Teleport a player near a location

Teleport a player near a location

Parameters

$player
  • player to be teleported
$target
  • location to teleport nearby
$rand
  • how far to randomize positions
$dist
  • if not null it will make sure that new location is upto $dist

Returns

boolean
  • true on success, false on failure
public static Level|null
# getLevelByName( pocketmine\Server $server, str $world )

Get a world name and return a level object. Loads levels as needed

Get a world name and return a level object. Loads levels as needed

Parameters

$server
$world

Returns

Level|null
API documentation generated by ApiGen