Skip to content

Add mixins for core command modifications: kick, tempban, and unban - #20

Merged
Adammatthiesen merged 2 commits into
mainfrom
tweak
Oct 20, 2026
Merged

Adammatthiesen merged 2 commits into
mainfrom
tweak

Conversation

@Adammatthiesen

Copy link
Copy Markdown
Member

This pull request adds integration with the optional corecommands mod for the NeoForge platform, allowing the project to modify the behavior of core command implementations when corecommands is present. The main changes include adding the corecommands dependency, introducing new mixins to override command registration, and updating mod configuration files to support the new integration.

Integration with corecommands mod:

  • Added corecommands as an optional dependency in the build configuration (gradle/libs.versions.toml) and ensured it is included in the neoforgeModImplementation dependencies. [1] [2] [3]
  • Updated neoforge.mods.toml to declare corecommands as an optional mod dependency and to register a new mixin configuration (global_ban_corecommands_neoforge.mixins.json) that is only loaded if corecommands is present. [1] [2]

New mixins for command modification:

  • Added three mixin classes (CCKickCmdMixin, CCTempbanCmdMixin, CCUnbanCmdMixin) that modify the registration of the kick, tempban, and unban commands from corecommands, prefixing their command names to avoid conflicts or for namespacing. [1] [2] [3]
  • Introduced a new mixin configuration file, global_ban_corecommands_neoforge.mixins.json, to register these mixins when corecommands is available.

@Adammatthiesen
Adammatthiesen marked this pull request as ready for review October 20, 2026 05:18
@Adammatthiesen
Adammatthiesen merged commit d999317 into main Oct 20, 2026
1 check passed
@Adammatthiesen
Adammatthiesen deleted the tweak branch October 20, 2026 05:27
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.

1 participant