diff --git a/system/pages/admin/players.php b/system/pages/admin/players.php index 75544c7e..f26a2ea3 100644 --- a/system/pages/admin/players.php +++ b/system/pages/admin/players.php @@ -120,7 +120,11 @@ if($id > 0) { verify_number($experience, 'Experience', 20); $vocation = $_POST['vocation']; - verify_number($vocation, 'Vocation id', 1); + verify_number($vocation, 'Vocation id', 11); + + if(!isset($config['vocations'][$vocation])) { + echo_error("Vocation with this id doesn't exist."); + } // health $health = $_POST['health']; @@ -357,14 +361,12 @@ $account = $player->getAccount();