Commit Graph

12 Commits

Author SHA1 Message Date
akastijn 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
akastijn 4e66e00eae Add cooldown mechanism to Login command 2025-07-04 21:41:33 +02:00
akastijn 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
akastijn 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
akastijn 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
akastijn fbc9b5a9c6 Add SLF4J Simple implementation for logging 2025-06-29 02:38:39 +02:00
akastijn ee2e026974 Fix Gradle build step in Jenkinsfile 2025-06-29 02:24:29 +02:00
akastijn 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
akastijn 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
akastijn 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
Teriuihi 6ef20f8fd6 Add caching mechanism and improve error handling for AuthService
Introduced a caching layer to reduce redundant login code requests to the server, improving performance and reducing load. Updated related code to ensure better error logging and clean up unused variables. Adjusted event handling in ProxyPlayerListener for improved execution order and ban message deserialization.
2025-05-24 00:48:30 +02:00
Teriuihi d928ea4b87 Add initial project setup and core functionality
This commit introduces the WebInterface plugin with core modules, including a login command, reload command, and event listener for player bans. Gradle build files, configuration management, and supporting scripts (gradlew) are also included to enable project setup and build automation.
2025-05-03 03:20:46 +02:00