Hey, I need help with my If statement. I want to see if a condition within the config file is true, then execute the php. in what i have done, the guardian value must be set to on before is runs the code PHP: public function onJoin(PlayerJoinEvent $join){ if($this->getConfig()->get("Guardian") = on) { $player = $join->getPlayer(); $this->getServer()->getScheduler()->scheduleDelayedTask(new ElderGuardianTask($this, $player), 30); } }
change on ur config.yml guardian: on to guardian: true (or false, as u want) and delete = on PHP: if($this->getConfig()->get("Guardian")) {