mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +00:00
Merge branch 'next-minor'
This commit is contained in:
commit
aa5395d6ed
@ -9,8 +9,6 @@ settings:
|
|||||||
shutdown-message: "Server closed"
|
shutdown-message: "Server closed"
|
||||||
#Allow listing plugins via Query
|
#Allow listing plugins via Query
|
||||||
query-plugins: true
|
query-plugins: true
|
||||||
#Show a console message when a plugin uses deprecated API methods
|
|
||||||
deprecated-verbose: true
|
|
||||||
#Enable plugin and core profiling by default
|
#Enable plugin and core profiling by default
|
||||||
enable-profiling: false
|
enable-profiling: false
|
||||||
#Will only add results when tick measurement is below or equal to given value (default 20)
|
#Will only add results when tick measurement is below or equal to given value (default 20)
|
||||||
|
@ -570,16 +570,6 @@ class PluginManager{
|
|||||||
|
|
||||||
$handlerName = Utils::getNiceClosureName($handler);
|
$handlerName = Utils::getNiceClosureName($handler);
|
||||||
|
|
||||||
$tags = Utils::parseDocComment((string) (new \ReflectionClass($event))->getDocComment());
|
|
||||||
if(isset($tags["deprecated"]) and $this->server->getProperty("settings.deprecated-verbose", true)){
|
|
||||||
$this->server->getLogger()->warning($this->server->getLanguage()->translateString("pocketmine.plugin.deprecatedEvent", [
|
|
||||||
$plugin->getName(),
|
|
||||||
$event,
|
|
||||||
$handlerName
|
|
||||||
]));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(!$plugin->isEnabled()){
|
if(!$plugin->isEnabled()){
|
||||||
throw new PluginException("Plugin attempted to register event handler " . $handlerName . "() to event " . $event . " while not enabled");
|
throw new PluginException("Plugin attempted to register event handler " . $handlerName . "() to event " . $event . " while not enabled");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user