diff --git a/app/Http/Controllers/Admin/ServerAdministrationController.php b/app/Http/Controllers/Admin/ServerAdministrationController.php index fa227a0cf..e2a0bb6ab 100644 --- a/app/Http/Controllers/Admin/ServerAdministrationController.php +++ b/app/Http/Controllers/Admin/ServerAdministrationController.php @@ -720,6 +720,15 @@ public function unban(Request $request): RedirectResponse 'canceled' => true, 'canceled_at' => now(), ]); + + // Lift the 48h minimum-vacation restriction that was imposed by the ban + // so the player can leave vacation mode immediately after being unbanned. + // The vacation_mode flag itself is left ON — the player chooses when to + // disable it; we only release the time-lock that the ban introduced. + if ($user->vacation_mode && $user->vacation_mode_until !== null && now()->lessThan($user->vacation_mode_until)) { + $user->vacation_mode_until = now(); + $user->save(); + } } return redirect()->route('admin.server-administration.index')