KygekTeam Forums

General => Devs => Topic started by: mmm545 on February 24, 2021, 04:30:32 pm


Title: stop using mkdir for data folders
Post by: mmm545 on February 24, 2021, 04:30:32 pm
don't use @mkdir($this->getDataFolder()); for making a data folder for your plugin, pocketmine already makes one for you
Title: Re: stop using mkdir for data folders
Post by: KygekDev on February 24, 2021, 04:33:03 pm
Thanks for the tip!

Also PHP 8 won't suppress fatal errors when using @ operator anymore. So this feature might break some plugins after upgrading to PHP 8.
Title: Re: stop using mkdir for data folders
Post by: daviddgtnt on March 10, 2021, 08:57:16 am
Thanks for the tip!