From a3306914cce20936b7b3f445592a6d38770b83f7 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 6 Dec 2022 13:58:50 +0000 Subject: [PATCH] bootstrap: do not require the plugins dir to be writable on a modern installation, the plugins folder does not need to be writable by the server. Perhaps DevTools should be checking this for /genplugin, but it's not required otherwise. --- src/PocketMine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PocketMine.php b/src/PocketMine.php index d84cf50a2..bb07d5880 100644 --- a/src/PocketMine.php +++ b/src/PocketMine.php @@ -279,7 +279,7 @@ JIT_WARNING } //this has to be done after we're sure the data path exists $dataPath = realpath($dataPath) . DIRECTORY_SEPARATOR; - if(!@mkdir($pluginPath, 0777, true) && (!is_dir($pluginPath) || !is_writable($pluginPath))){ + if(!@mkdir($pluginPath, 0777, true) && !is_dir($pluginPath)){ critical_error("Unable to create plugin directory at $pluginPath. Check that the target location is accessible by the current user."); exit(1); }