Add return true / flase

This commit is contained in:
LogischJo 2021-06-06 20:34:25 +02:00 committed by GitHub
parent a78410d09e
commit 22a59fcf58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ class createUser extends Command
if (is_null($response)) {
print_r('It seems that your Pterodactyl ID isnt correct. Rerun the command and input an correct ID');
return;
return false;
};
$user = User::create([
@ -69,5 +69,6 @@ class createUser extends Command
['Ptero-ID', $user->pterodactyl_id],
['Admin', $user->role],
]);
return true;
}
}