ifera-mc / MysteryCrate

PLUGIN ARCHIVED. USE https://github.com/DaPigGuy/PiggyCrates instead!
GNU General Public License v3.0
28 stars 30 forks source link

Can't retrieve crate keys from crates that have a name with uppercase characters #120

Closed AndreasHGK closed 4 years ago

AndreasHGK commented 5 years ago

Reproduce:

Pluign version: v9.1.0 Pocketmine version: 3.7.1

This happens because you first make the name lowercase in both commands: https://github.com/JackMD/MysteryCrate/blob/a4402559c655cf6a656146573ce1064d19db8876/src/JackMD/MysteryCrate/command/KeyAllCommand.php#L73 After that, you compare the name to a possibly uppercase crate in crates.yml https://github.com/JackMD/MysteryCrate/blob/a4402559c655cf6a656146573ce1064d19db8876/src/JackMD/MysteryCrate/Main.php#L319

Ifera commented 5 years ago

Yes I am aware of this bug for quite some time now but I haven't had the time to fix it.

Ifera commented 5 years ago

I mean I know how to fix this but the reality is I have lost motivation working on this plugin.. In its current form this is one giant piece of 💩... And I cba to fix it...

Ifera commented 5 years ago

Didnt meant to close...

AndreasHGK commented 5 years ago

sounds familiar

Ifera commented 5 years ago

yep

Ifera commented 4 years ago

Eh closing in favor of archiving. And i have no plans on maintaining this.