Code: PHP: public function gerarKey($tamanho = 10, $maiusculas = true, $numeros = true){ $lmin = 'abcdefghijklmnopqrstuvwxyz'; $lmai = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $num = '1234567890'; $caract = ""; $retorno = ""; $caract .= $lmin; if($maiusculas) $caract .= $lmai; if($numeros) $caract .= $num; $len = strlen($caract); for($n = 1; $n <= $tamanho; $n++){ $rand = mt_rand(1, $len); $retorno .= $caract[$rand-1]; } return $retorno; } Error: Code: [22:12:22] [Server thread/INFO]: An unknown error occurred while attempting to perform this command [22:12:22] [Server thread/CRITICAL]: Unhandled exception executing command 'key' in key: Call to undefined function Keys\gerarKey() [22:12:22] [Server thread/CRITICAL]: Error: "Call to undefined function Keys\gerarKey()" (EXCEPTION) in "/zip_Keys_v2_rFNwRYPlOBRLsSH/src/Keys/Main" at line 46 Line 46: PHP: $gerar = gerarKey(10);