Merge branch 'next-minor'

This commit is contained in:
Dylan K. Taylor 2019-08-02 16:35:17 +01:00
commit aa5395d6ed
2 changed files with 0 additions and 12 deletions

View File

@ -9,8 +9,6 @@ settings:
shutdown-message: "Server closed"
#Allow listing plugins via Query
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-profiling: false
#Will only add results when tick measurement is below or equal to given value (default 20)

View File

@ -570,16 +570,6 @@ class PluginManager{
$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()){
throw new PluginException("Plugin attempted to register event handler " . $handlerName . "() to event " . $event . " while not enabled");
}