PocketMine
|
Static Public Attributes | |
static | $pluginParentTimer |
static | $useTimings = false |
Protected Member Functions | |
parseYamlCommands (Plugin $plugin) | |
Protected Attributes | |
$plugins = [] | |
$permissions = [] | |
$defaultPerms = [] | |
$defaultPermsOp = [] | |
$permSubs = [] | |
$defSubs = [] | |
$defSubsOp = [] | |
$fileAssociations = [] | |
Manages all the plugins, Permissions and Permissibles
__construct | ( | Server | $server, |
SimpleCommandMap | $commandMap | ||
) |
Server | $server | |
SimpleCommandMap | $commandMap |
addPermission | ( | Permission | $permission | ) |
Permission | $permission |
callEvent | ( | Event | $event | ) |
Calls an event
Event | $event |
getDefaultPermissions | ( | $op | ) |
boolean | $op |
getPermission | ( | $name | ) |
string | $name |
getPermissions | ( | ) |
getPlugin | ( | $name | ) |
string | $name |
getPlugins | ( | ) |
loadPlugin | ( | $path, | |
$loaders = null |
|||
) |
string | $path | |
PluginLoader[] | $loaders |
loadPlugins | ( | $directory, | |
$newLoaders = null |
|||
) |
string | $directory | |
array | $newLoaders |
recalculatePermissionDefaults | ( | Permission | $permission | ) |
Permission | $permission |
registerEvent | ( | $event, | |
Listener | $listener, | ||
$priority, | |||
EventExecutor | $executor, | ||
Plugin | $plugin, | ||
$ignoreCancelled = false |
|||
) |
string | $event | Class name that extends Event |
Listener | $listener | |
int | $priority | |
EventExecutor | $executor | |
Plugin | $plugin | |
bool | $ignoreCancelled |
PluginException |
Registers all the events in the given Listener class
Listener | $listener | |
Plugin | $plugin |
PluginException |
registerInterface | ( | $loaderName | ) |
string | $loaderName | A PluginLoader class name |
removePermission | ( | $permission | ) |
string | Permission | $permission |
setUseTimings | ( | $use | ) |
bool | $use |
subscribeToDefaultPerms | ( | $op, | |
Permissible | $permissible | ||
) |
boolean | $op | |
Permissible | $permissible |
subscribeToPermission | ( | $permission, | |
Permissible | $permissible | ||
) |
string | $permission | |
Permissible | $permissible |
unsubscribeFromDefaultPerms | ( | $op, | |
Permissible | $permissible | ||
) |
boolean | $op | |
Permissible | $permissible |
unsubscribeFromPermission | ( | $permission, | |
Permissible | $permissible | ||
) |
string | $permission | |
Permissible | $permissible |
useTimings | ( | ) |