mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 07:25:31 +00:00
Added the @notscript tag in potential script plugins
Then we can have .php files in the plugins folder that contain /** but are not script plugins
This commit is contained in:
parent
085ff56362
commit
2fb3b41b8d
@ -98,6 +98,10 @@ class ScriptPluginLoader implements PluginLoader{
|
|||||||
$key = $matches[1];
|
$key = $matches[1];
|
||||||
$content = trim($matches[2]);
|
$content = trim($matches[2]);
|
||||||
|
|
||||||
|
if($key === "notscript"){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$data[$key] = $content;
|
$data[$key] = $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user