mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Merge branch 'notscript'
This commit is contained in:
commit
e51c6b4b42
@ -94,9 +94,13 @@ class ScriptPluginLoader implements PluginLoader{
|
||||
$insideHeader = true;
|
||||
}
|
||||
|
||||
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];
|
||||
$content = trim($matches[2]);
|
||||
$content = trim($matches[3]);
|
||||
|
||||
if($key === "notscript"){
|
||||
return null;
|
||||
}
|
||||
|
||||
$data[$key] = $content;
|
||||
}
|
||||
@ -157,4 +161,4 @@ class ScriptPluginLoader implements PluginLoader{
|
||||
$plugin->setEnabled(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user