Skip to content

Incompatibility: CMI custom commands run twice when AquaticCrates is installed #10049

@NoltoxGit

Description

@NoltoxGit

Description of Issue

When AquaticCrates is installed alongside CMI, custom CMI commands (aliases) are executed twice instead of once. The issue is reproducible on the latest versions of Paper, CMI, and CMILib (tested using Paper 1.21.11 and CMI 9.8.4.4). Without AquaticCrates, CMI custom commands behave normally and only run once. After adding AquaticCrates, the same custom command runs twice (when using its alias) and once when using the command with the explicit "/cmi:" prefix. Extensive troubleshooting and discussion with the AquaticCrates developer have not resolved the problem, and it appears to originate from the way CMI registers/saves aliases.

Here is a complete video about the bug with CMI commands running twice, if you want to try to reproduce the bug: https://youtu.be/6wxrSveK0p8

Steps in the video and some details:

  1. Start the clean server without AquaticCrates & Waves
  2. Do the command "/cmi aliaseditor new demobug-test"
  3. Set "asConsole! minecraft:give Noltiii minecraft:diamond" in the CustomAlias
  4. Restart the server to register the command
  5. Do the command "/demobug" in chat and in console
    • Here, you can see the command execute single time.
  6. Stop the server and put AquaticCrates (latest version sent in DM)
  7. Start the server
  8. Do the command again "/demobug" and "/cmi:demobug" in chat and in console
    • Here, you can see the command execute twice time with /demobug and single time with /cmi:demobug.

Version Information

--------------------------------------------------
CMI: 9.8.4.4 SqLite
CMILib: 1.5.8.2 
Server: Paper(87) 1.21.11-R0.1-SNAPSHOT+
CMI economy: Disabled CMI Chat: Disabled 
Modules -> 68 enabled 1 disabled: votifier
--------------------------------------------------

Errors

Relevant Config Sections

Relevant Plugins

Sources:

Agreements

  • My server is supported by CMI.
  • My version of CMI at the time of this report is up to date.
  • I have searched the github and asked around before making this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportReports of bugs/inconsistenciesstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions