12 Commits
Author SHA1 Message Date
stijn ed42cb8887 Update Velocity API version and add snapshot repository
- Change Velocity API dependency to version 3.1.0 for enhanced stability.
- Add Velocity snapshots repository since it seems to be required for this build
2025-12-27 01:44:09 +01:00
stijn 2e812ed588 Make cache duration configurable via Config
- Add `CACHE_TIME_MINUTES` to `Config` with a default value of 5 minutes.
- Replace hardcoded cache duration in `AuthService` with the configurable value from `Config`.
2025-08-02 22:32:38 +02:00
stijn f42777c62a Update Login URL handling and optimize ShadowJar build process
- Fix `resolveLogin` method to ensure correct login endpoint formatting.
- Update default `LOGIN_CODE_ENDPOINT` in `Config` to reflect new API path.
- Adjust ShadowJar build to transform SLF4J service files and exclude SLF4J dependencies during minimization.
2025-07-31 23:05:06 +02:00
stijn 4e66e00eae Add cooldown mechanism to Login command 2025-07-04 21:41:33 +02:00
stijn e591a0c9c3 Refactor Login command to not crash you when you use it
- Replace `TagResolver` with string replacement for resolving login messages.
- Remove unused imports related to `TagResolver` and `Placeholder`.
- Update `resolveLogin` method signature and logic to use string replacements.
2025-07-04 21:33:18 +02:00
stijn 6bb50a57b6 Add file saving support to NotificationServer
- Implement file saving to disk in `NotificationServer` with optional UUID-based organization.
- Use `Config` to configure `DOWNLOAD_DIR` and `PORT` for better flexibility.
- Update HTTP responses for improved clarity on file download and save operations.
2025-06-29 03:14:42 +02:00
stijn 48a01e0a98 Add UUID-based file download support to NotificationServer
- Introduce `/notify/{uuid}/{file}.json` endpoint in `NotificationServer`.
- Validate UUID format and handle bad requests with appropriate error responses.
- Extend `FileDownloadService` to support downloads using UUIDs.
- Refactor common file download logic for reuse across endpoints.
2025-06-29 02:53:52 +02:00
stijn fbc9b5a9c6 Add SLF4J Simple implementation for logging 2025-06-29 02:38:39 +02:00
stijn ee2e026974 Fix Gradle build step in Jenkinsfile 2025-06-29 02:24:29 +02:00
stijn 2ef5bd8ba2 Add ShadowJar plugin for shaded build
Configure package relocation to avoid dependency conflicts.
Update build process to produce minimized ShadowJar artifacts and disable default jar task.
2025-06-29 02:17:09 +02:00
stijn d4359bf480 Add notification server and file download service implementation
- Introduce `NotificationServer` for handling HTTP notifications.
- Register `ProxyShutdownEvent` to stop the notification server on shutdown.
- Add `FileDownloadService` for asynchronous file downloads using the configured endpoint.
- Update `Config` to include `download-endpoint`.
- Add Javalin and SLF4J dependencies for the HTTP server.
2025-06-23 23:06:47 +02:00
stijn df8f08544b - Update logging message in reloadConfig method for accuracy.
- Add permission check for player login event.
- Add a Jenkinsfile for CI pipeline configuration.
2025-06-23 21:41:24 +02:00