Skip to content

Code refactor#33

Open
NoJokeFNA wants to merge 11 commits intodevelopfrom
feat/refactor
Open

Code refactor#33
NoJokeFNA wants to merge 11 commits intodevelopfrom
feat/refactor

Conversation

@NoJokeFNA
Copy link
Copy Markdown
Collaborator

@NoJokeFNA NoJokeFNA commented Nov 12, 2025

This pull request updates the project to require Java 17, modernizes the build and dependency setup, and improves documentation formatting and clarity. The most important changes are grouped below.

Build and CI Improvements

  • The GitHub Actions workflow in .github/workflows/build.yml is updated to use Java 17, matrix builds, Maven caching, and separate build steps for pull requests and pushes. The workflow now supports both master and develop branches for PRs, and uses updated actions versions for checkout and Java setup.

Dependency and Project Configuration

  • All Maven pom.xml files (pom.xml, BanSystem-SpigotChatAdapter/pom.xml, BanSystem-SpigotChatAdapter/dependency-reduced-pom.xml, BanSystem-StatisticServer/pom.xml) now specify Java 17 as the required version, update plugin versions, and bump several dependency versions (e.g., Velocity, Floodgate, SQLite JDBC, Gson, SnakeYAML, MySQL Connector). The main project version is incremented to 3.3 and a new repository for releases is added. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

Documentation Updates

  • The README.md is revised to state Java 17 as the minimum requirement and improves formatting for installation steps, API key instructions, and permissions tables for better readability. [1] [2] [3]

Codebase Maintenance

  • Minor code cleanups and formatting adjustments are made, such as import organization in SpigotChatAdapter.java and removal of redundant vendor tags in Maven manifests. [1] [2]

API and Instance Management

  • The BanSystem interface and BanSystemBungee class are refactored for clearer static instance management and caching of banned/muted player names, improving code organization and maintainability. [1] [2] [3] [4] [5]

Upgraded maven-compiler-plugin to 3.14.1, maven-shade-plugin to 3.6.1, and various dependencies (e.g., velocity-api to 3.4.0-SNAPSHOT, gson to 2.13.2, and more)
…matRemainingTime

Standardized all occurrences of getFormattedRemainingTime to the newer formatRemainingTime method for consistency and streamlined functionality.
Updated Java version requirement and configuration from 1.8 to 11 in POM files and README for compatibility and modernization.
… steps

- Added Java version matrix support for better testing coverage.
- Split build steps for PRs and pushes with conditional logic.
- Improved artifact handling and caching for Maven builds.
Updated Java version requirement and configuration from 11 to 17 in POM files, README, and CI workflow for compatibility and modernization.
@NoJokeFNA NoJokeFNA changed the title Small code refactor Code refactor Nov 12, 2025
antisocialtobi and others added 2 commits November 12, 2025 17:28
Fix formatting issues in the README regarding ban levels.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants