Zrips / CMI

114 stars 97 forks source link

cooldown:(value)! command in IC applies the cool down to EVERY IC using a similar command #4508

Open Momshroom opened 3 years ago

Momshroom commented 3 years ago

Description of issue: I made a series of separate IC commands to all give a crate (on a cool down)and broadcast a message. Even though they were completely separate IC commands, not instances of the same one, once a player had activated one, none of the others would give the crate. I then tried making DIFFERENT crates, but it wouldn't even give the crate for a second one if it was a different crate. CMI seems to be applying any cool down on a base command to that base command in ALL ics. Even if the full command is different for each and even if they. are different ICs (not just different instances)

I ended up getting around this by removing the cool downs and using a hack with hasperm!, but I can think of many many cases where I would want separate cool downs on similar commands in an Ic or separate cool downs on the same ic.

example of what I was trying to do: https://image.prntscr.com/image/jvBNIYUOR7SmibuQORZHXg.png

One of those would work, but then the other would not. And the problem persisted when I made them different crates. Whichever was tried by the player first is what worked.


ERROR (DELETE IF YOU HAVE NO ERROR):

no error

Cmi Version (using/cmi version):

01:47:27 INFO: CMI plugin version: 8.7.9.3 MySQL 01:47:27 INFO: Server: Paper(244) 1.16.3-R0.1-SNAPSHOT 01:47:27 INFO: CMI economy: False Vault: 1.7.3-b131 CMI Chat: False 01:47:27 INFO: Modules -> 43 enabled 8 disabled: spawnerProximity, flightCharge, disabledEnchants, mirror, ranks, moneyCheque, spawners, spawnerCharge

Server Type (Spigot/Paperspigot/etc): Paper Server Version (using /ver): This server is running Paper version git-Paper-244 (MC: 1.16.3) (Implementing API version 1.16.3-R0.1-SNAPSHOT) Relevant plugins (Delete if this isn't needed): CrateReloaded Pro

CloudeLecaw commented 3 years ago

what about the first idea - you post your ics so we can see first if all there is ok

Momshroom commented 3 years ago

I did post two of them, in the screenshot above.

example of what I was trying to do: https://image.prntscr.com/image/jvBNIYUOR7SmibuQORZHXg.png

I didn't post the ones that used different crates, and I no longer have them as I stated above that I rewrote them all to use hasperm to get around this issue. If you'd like me to make new ones with different crates, I can do that on my test server, but the ONLY difference between those and the examples I've already shown you was the name of the crate.

CloudeLecaw commented 3 years ago

currently we are not able to see your acreenshots.. the problem is when i click your Screenshots it just shows me "403 forbitten" and i am sure i am not the only one with that Problem when they click your screenshots ;)

would be easier if you post the code like this, mark the code with your mouse and use the <> symbol then its postet as code without loose of format

or mark the Screenshot part you wanne Show with your mouse and do CTRL + C and here CTRL + V then it upload the Screenshotpart of you clipboard to github.