Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect result when returning the value of a papi placeholder in a specialized command. #8558

Closed
3 tasks done
GhostHost256 opened this issue Mar 19, 2024 · 1 comment
Closed
3 tasks done
Labels
bug report Reports of bugs/inconsistencies

Comments

@GhostHost256
Copy link

GhostHost256 commented Mar 19, 2024

Description of Issue

When using the cmi placeholder command to parse %coinsengine_server_balance_raw_redteam% it works as expected, but when using it the specialized command in an alias check: it does not.

Command:
/cmi placeholder parse %coinsengine_server_balance_raw_redteam%
Result:
%.coinsengine_server_balance_raw_redteam.% by Papi result 1040

Alas:
team_checkforwin3:
Cmds:
- check:%cmi_equationint_{coinsengine_server_balance_raw_redteam}/1%>1000! asConsole! cmi staffmsg &4Red &fYes
- check:%cmi_equationint_{coinsengine_server_balance_raw_redteam}/1%<1000! asConsole! cmi staffmsg &4Red &fNo
Result: No

Another Example:
Command:
/cmi placeholders parse %cmi_equationint_{coinsengine_server_balance_raw_redteam}/1%
Result:
%.cmi placeholders parse %cmi_equationint_1040}/1.% by CMI result 0

Version Information

CMI: 9.6.11.2 Unknown SqLite
CMILib: 1.4.5.2
Server: Paper(451) 1.20.4-R0.1-SNAPSHOT-
CMI economy: Disabled Vault: 1.7.3-CMI CMI Chat: Enabled
Modules -> 31 enabled 28 disabled: spawnerProximity, cuffed, mirror, versionCheck, armorEffects, moneyCheque, skin, noTarget, elytraBoost, elytraLaunch, bossBarCompass, coloredArmor, playerCombat, shulkerBackpack, headDrop, spawnerCharge, homeInteractions, hpBossBar, anvilRenameColor, spawners, paintingEditor, dynamicSigns, durabilityLoss, flightCharge, disabledEnchants, worldLimitsElytra, worldLimits, silentChest

Errors

No error

Relevant Config Sections

team_checkforwin:
    Cmds:
    - asConsole! cmi staffmsg Checking for winner...
    - delay! 3
    - statement:red! check:%coinsengine_server_balance_raw_redteam%>999!
    - statement:blue! check:%coinsengine_server_balance_raw_blueteam%>999!
    - if:red! asConsole! red_wins
    - if:blue! asConsole! blue_wins
    - if:red! asPlayer! red_world
    - if:blue! asPlayer! blue_world
    - if:red@! asConsole! cmi staffmsg &4Red &fNo
    - if:blue@! asConsole! cmi staffmsg &9Blue &fNo
    - delay! 1
    - asConsole! cmi staffmsg Check complete

  team_checkforwin3:
    Cmds:
    - check:%cmi_equationint_{coinsengine_server_balance_raw_redteam}/1%>1000! asConsole! cmi staffmsg &4Red &fYes
    - check:%cmi_equationint_{coinsengine_server_balance_raw_blueteam}/1%>1000! asConsole! cmi staffmsg &9Blue &fYes
    - check:%cmi_equationint_{coinsengine_server_balance_raw_redteam}/1%<1000! asConsole! cmi staffmsg &4Red &fNo
    - check:%cmi_equationint_{coinsengine_server_balance_raw_blueteam}/1%<1000! asConsole! cmi staffmsg &9Blue &fNo

Relevant Plugins

CoinsEngine 2.2.0.1

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.
@GhostHost256 GhostHost256 added the bug report Reports of bugs/inconsistencies label Mar 19, 2024
@GhostHost256
Copy link
Author

Not sure what changed, but this is working as expected now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Reports of bugs/inconsistencies
Projects
None yet
Development

No branches or pull requests

1 participant