Skip to content

PermissionParser ​

class · pocketmine\permission\PermissionParser · source

Constants ​

DEFAULT_FALSE ​

php
public const DEFAULT_FALSE = "false"

DEFAULT_NOT_OP ​

php
public const DEFAULT_NOT_OP = "notop"

DEFAULT_OP ​

php
public const DEFAULT_OP = "op"

DEFAULT_STRING_MAP ​

php
public const DEFAULT_STRING_MAP = ["op" => self::DEFAULT_OP, "isop" => self::DEFAULT_OP, "operator" => self::DEFAULT_OP, "isoperator" => self::DEFAULT_OP, "admin" => self::DEFAULT_OP, "isadmin" => self::DEFAULT_OP, "!op" => self::DEFAULT_NOT_OP, "notop" => self::DEFAULT_NOT_OP, "!operator" => self::DEFAULT_NOT_OP, "notoperator" => self::DEFAULT_NOT_OP, "!admin" => self::DEFAULT_NOT_OP, "notadmin"  …

DEFAULT_TRUE ​

php
public const DEFAULT_TRUE = "true"

Methods ​

defaultFromString() ​

php
public static function defaultFromString(bool|string $value) : string

loadPermissions() ​

php
public static function loadPermissions(array $data, string $default = self::DEFAULT_FALSE) : array

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.