Skip to content

Commit

Permalink
Temporarily disable brigadier on 1.20.6+
Browse files Browse the repository at this point in the history
Upstream issue: aikar/commands#409

Closes #58
  • Loading branch information
Insprill committed Jan 20, 2025
1 parent 71bdf61 commit d1bd3db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]

### Fixed

- Command warning during startup on 1.20.6+ servers.


## [17.7.0] - 2024-12-26

### Added
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/net/insprill/cjm/CustomJoinMessages.kt
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ open class CustomJoinMessages : JavaPlugin() {
@Suppress("DEPRECATION")
commandManager.run {
enableUnstableAPI("help")
enableUnstableAPI("brigadier")
if (MinecraftVersion.isOlderThan(MinecraftVersion(20, 6)))
enableUnstableAPI("brigadier")
}

CommandContext(this).register(commandManager)
Expand Down

0 comments on commit d1bd3db

Please sign in to comment.