Hey Guys..I want to test some things! So there is a Folder and in this folder a few files are! The files name can't be anything! IMPORTANT: The Files name will change their name every few minutes! Some Files could be remove or create with a new random name!! So In every File there is a Random thing....(All the files are in "Random/") For Example(here 3 files!): File1: Code: Random: "a" File2: Code: Random: "z" File3: Code: Random: "e" So now the Plugin should get all Files at same time...He should cgeck...For Example: If the Random: "" == e a Event will happen.... My ask is: => How I get all the Random Files? PHP: $files = new config($this->getDataFolder() . "Random/", Config::YAML, array()); And than check?
Do you know foreach? If not, google it. Simply foreach the files in your directory: PHP: $files = scandir($this->getDataFolder()."Random/");foreach($files as $file) { // Do something}