mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +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){
|
||||
$key = $matches[1];
|
||||
$content = trim($matches[3]);
|
||||
$content = trim($matches[3] ?? "");
|
||||
|
||||
if($key === "notscript"){
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user