You can use: PHP: $player->hasPermission("") and obviously you must declare the $player variable before.