I want to make an Plugin for feed which only allowed the Command in given worlds Code: PHP: if($sender->getLevel()->getName() == $this->data->get("allowed-worlds-heal")){ Config: Code: allowed-worlds-heal: - Plotwelt - Farmwelt - Nether Is this possible when not how it is possible
you can use in_array() to check if the world name is in the list of allowed worlds PHP: if(in_array($sender->getLevel()->getName(), $this->data->get("allowed-worlds-heal"))){ //your code...}