Separate names with a comma.
Comments in 'Plugin Development' started by Driesboy1, Feb 17, 2016.
hi i need a code for checking of player is in the specific world set in the Config.yml
PHP: if($player->getLevel()->getName() == $this->getConfig()->get('world')){ // Do-something}
if($player->getLevel()->getName() == $this->getConfig()->get('world')){ // Do-something}
Use === to compare. It is faster for this purpose.
Ok