Browse Source

Add return true / flase

LogischJo 4 years ago
parent
commit
22a59fcf58
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Console/Commands/createUser.php

+ 2 - 1
app/Console/Commands/createUser.php

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