Paper 1.21.9+ join spawn, Java 21 build, English and Brazilian translations#291
Open
cl3i550n wants to merge 6 commits intoHaHaWTH:masterfrom
Open
Paper 1.21.9+ join spawn, Java 21 build, English and Brazilian translations#291cl3i550n wants to merge 6 commits intoHaHaWTH:masterfrom
cl3i550n wants to merge 6 commits intoHaHaWTH:masterfrom
Conversation
- Bumped Spigot version to 1.21.11-R0.1-SNAPSHOT for compatibility with Paper API. - Added Paper API repository and dependency for AsyncPlayerSpawnLocationEvent. - Refactored command responses to use a centralized messaging service for consistency and clarity. - Enhanced various command implementations to provide better feedback to users, including error messages and success confirmations.
- Changed project URL and SCM connections to reflect the new repository location. - Updated CI management to use GitHub Actions instead of Jenkins. - Downgraded Java version from 21 to 17 for compatibility. - Adjusted Spigot dependency version to 1.21.1-R0.1-SNAPSHOT. - Removed unused Paper API repository and dependency.
- Upgraded Java source and target versions from 17 to 21 for improved compatibility. - Updated Spigot dependency version to 1.21.11-R0.1-SNAPSHOT. - Added Paper API repository and dependency for AsyncPlayerSpawnLocationEvent support.
- Added detailed descriptions and arguments for various AuthMe commands in the help_br.yml file. - Improved structure and clarity of command help texts to better assist users in understanding available functionalities.
- Changed project URL and SCM connections to point to the new AuthMe repository. - Updated CI management system from GitHub Actions to Jenkins. - Adjusted issue management URL to reflect the new repository location.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR modernizes the build for current Paper/Spigot APIs, adds Paper-specific handling for async player spawn location (replacing deprecated Spigot-only paths where appropriate), and completes Portuguese (Brazil) help strings for
/authme helpsomessagesLanguage: brdoes not fall back to English command descriptions.Motivation
PlayerSpawnLocationEventfor configuration-phase spawn logic;AsyncPlayerSpawnLocationEventis the supported hook.paper-apiartifacts target Java 21 bytecode; compiling the project on Java 17 fails with wrong class file version or missing Paper packages when those APIs are referenced.help_br.ymlonly definedauthme.register; all other/authmesubcommands used in-code English descriptions, producing mixed-language help output.Changes
Build & dependencies
java.source/java.target/java.apiVersionand enforcerjava.compiler.minimumVersionto 21.io.papermc.paper:paper-api(provided) and the Paper Maven repository (repo.papermc.io).spigot-apiversion property to1.21.11-R0.1-SNAPSHOT(aligned with the Paper API line used for compile).Runtime / Paper
PlayerListenerPaperAsyncSpawnwhenAsyncPlayerSpawnLocationEventis available at runtime; otherwise keep the existing Spigot-oriented listener path.TeleportationService: support preparing join spawn using player name + vanilla spawnLocation(for phases where a fullPlayerentity is not safe to use).SpawnLoader,PlayerListener19Spigot, andAuthMelistener registration.Internationalization
src/main/resources/messages/help_br.ymlwith fullcommands.authme.*entries (short/long descriptions and arguments) so Brazilian help is consistent for all admin subcommands.Miscellaneous fixes (from fork hardening)
ForceLoginCommand: injectCommonServicewhere required for messaging.DebugSectionUtils,LimboPlayerViewer, etc.) where the compiler rejected raw types.HasPermissionChecker/PlayerAuthViewer: useString.valueOf(...)for enum-based debug strings where needed.pom.xmlmetadataurl,scm,issueManagement, andciManagementpoint to the canonical AuthMe/AuthMeReloaded project and CodeMC Jenkins (upstream-style).plugins/AuthMe/messages/*.ymlfiles.Testing
mvn -q clean package -DskipTests(or full test suite) succeeds with JDK 21.Upgrade notes
paper-apiremainsprovided: the plugin JAR does not bundle Paper; only servers that ship Paper (or compatible) get the async spawn listener.