mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-17 08:54:22 +00:00
Fixed warning messages when parsing @notscript files
This commit is contained in:
parent
e51c6b4b42
commit
8441169365
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user