Crazy-Crew / CrazyCrates

Add unlimited crates to your server with 10 different crate types to choose from!
https://modrinth.com/plugin/crazycrates
MIT License
154 stars 153 forks source link

Using /cc open <crate> breaks crates until /cc reload. #667

Closed andrewkm closed 2 months ago

andrewkm commented 8 months ago

Spark link

No response

Server Version

1.20.4

Server Platform

Paper

Describe the bug

/cc open only works once then it breaks the crate. Issue /cc reload (fixes netherstar accepting crate once broken)

In the broken state however, netherstars taken from the /cc admin menu do work. This leads me to believe the old-key-checks option is somehow reverting to false after being used once via /cc open, and then /cc reload fixes it, until of course someone uses /cc open again.

https://youtu.be/aVEH_PTXHfA

Crate Type

CSGO

Steps to reproduce

See above.

Additional context

Using https://github.com/Crazy-Crew/CrazyCrates/commit/31d6a1b256772d1f49eeb23a9481763d7f0a66e2 Paper Build 462 Config.yml: https://pastebin.com/jC7FRGAs StarMachine: https://pastebin.com/2GtVJC5y

Agreements

andrewkm commented 8 months ago

This one is still broken on our end.

andrewkm commented 7 months ago

Thanks for re-opening, I will attempt to do more in-depth tests to see if we can track this down in-case you still cannot reproduce. Perhaps some sort of debug would be helpful as well.

andrewkm commented 7 months ago

After testing we've determined; setting either of the following options to true causes this issue: log-console: false log-file: false

ryderbelserion commented 2 months ago

Fixed this issue, and added the ability to log to console/file back in https://github.com/Crazy-Crew/CrazyCrates/compare/d27c013796b3...d8daa0758a4a

andrewkm commented 1 month ago

Confirmed fixed! :)