Add activity tracking for console/power actions
This commit is contained in:
parent
dc90d8b505
commit
4a8c3c4a34
3 changed files with 15 additions and 2 deletions
|
@ -4,6 +4,7 @@ namespace Pterodactyl\Http\Controllers\Api\Client\Servers;
|
|||
|
||||
use Illuminate\Http\Response;
|
||||
use Pterodactyl\Models\Server;
|
||||
use Pterodactyl\Facades\Activity;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use GuzzleHttp\Exception\BadResponseException;
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
|
@ -53,6 +54,8 @@ class CommandController extends ClientApiController
|
|||
throw $exception;
|
||||
}
|
||||
|
||||
Activity::event('server:console.command')->property('command', $request->input('command'))->log();
|
||||
|
||||
return $this->returnNoContent();
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue