mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Removed all @mkdir() calls
This commit is contained in:
@@ -78,7 +78,10 @@ class TimingsCommand extends VanillaCommand{
|
||||
$sampleTime = microtime(true) - self::$timingStart;
|
||||
$index = 0;
|
||||
$timingFolder = $sender->getServer()->getDataPath() . "timings/";
|
||||
@mkdir($timingFolder, 0777);
|
||||
|
||||
if(!file_exists($timingFolder)){
|
||||
mkdir($timingFolder, 0777);
|
||||
}
|
||||
$timings = $timingFolder . "timings.txt";
|
||||
while(file_exists($timings)){
|
||||
$timings = $timingFolder . "timings" . (++$index) . ".txt";
|
||||
|
Reference in New Issue
Block a user