mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Removed old trigger_error() calls, closes #2335
This commit is contained in:
@ -66,7 +66,7 @@ class PluginDescription{
|
||||
$this->main = $plugin["main"];
|
||||
$this->api = !is_array($plugin["api"]) ? [$plugin["api"]] : $plugin["api"];
|
||||
if(stripos($this->main, "pocketmine\\") === 0){
|
||||
trigger_error("Invalid PluginDescription main, cannot start within the PocketMine namespace", E_USER_ERROR);
|
||||
throw new PluginException("Invalid PluginDescription main, cannot start within the PocketMine namespace");
|
||||
|
||||
return;
|
||||
}
|
||||
@ -97,9 +97,7 @@ class PluginDescription{
|
||||
if(isset($plugin["load"])){
|
||||
$order = strtoupper($plugin["load"]);
|
||||
if(!defined(PluginLoadOrder::class . "::" . $order)){
|
||||
trigger_error("Invalid PluginDescription load", E_USER_ERROR);
|
||||
|
||||
return;
|
||||
throw new PluginException("Invalid PluginDescription load");
|
||||
}else{
|
||||
$this->order = constant(PluginLoadOrder::class . "::" . $order);
|
||||
}
|
||||
|
Reference in New Issue
Block a user