Zrips / CMI

116 stars 98 forks source link

"cmi giveall" and "cmi give" gives wrong amount of items #7536

Open Yertled opened 1 year ago

Yertled commented 1 year ago

Description of Issue

When I run the command "cmi giveall emerald 32" for example, it gives a random amount. The last 2 times I ran the command, I got 9 emeralds, and 10 emeralds. (It gives the same amount to everyone it seems like) Same goes for the "cmi give" command, when for example people get X amount of fireworks from a crate, they almost never get the correct amount, it's always a random amount lower than the number I set it as.

Version Information

[19:26:49 INFO]: --------------------------------------------------
[19:26:49 INFO]: CMI: 9.3.0.6 BungeeCord  SqLite
[19:26:49 INFO]: CMILib: 1.2.4.1 
[19:26:49 INFO]: Server: Purpur 1.19.3-R0.1-SNAPSHOT
[19:26:49 INFO]: CMI economy: Disabled CMI Chat: Disabled 
[19:26:49 INFO]: Modules -> 53 enabled 4 disabled: customMessages, tablist, firstJoinMessages, moneyCheque
[19:26:49 INFO]: --------------------------------------------------

Errors

No errors in console or chat.

Relevant Config Sections

No response

Relevant Plugins

Vault 1.7.3-CMI, CMILib 1.2.4.1

Agreements

Yertled commented 1 year ago

image

Zrips commented 1 year ago

Amount you get from both commands are not really randomized and should give you defined amounts. I would strongly recommend to test this command without any other plugin as it looks to be more of a compatibility issue. While give command does have special command to randomize amount, but its specialized variable and its not present in giveall and this looks to be quite rare issue as no one else reported it. So most likely issue with another plugin overriding how much player gets.