mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Fixed warning messages when parsing @notscript files
This commit is contained in:
@ -96,7 +96,7 @@ class ScriptPluginLoader implements PluginLoader{
|
|||||||
|
|
||||||
if(preg_match("/^[ \t]+\\*[ \t]+@([a-zA-Z]+)([ \t]+(.*))?$/", $line, $matches) > 0){
|
if(preg_match("/^[ \t]+\\*[ \t]+@([a-zA-Z]+)([ \t]+(.*))?$/", $line, $matches) > 0){
|
||||||
$key = $matches[1];
|
$key = $matches[1];
|
||||||
$content = trim($matches[3]);
|
$content = trim($matches[3] ?? "");
|
||||||
|
|
||||||
if($key === "notscript"){
|
if($key === "notscript"){
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user