Closed scottyboii closed 3 years ago
I've looked at the issue for quit a while now, however I'm not sure how to resolve this, neither do I have an idea why the config is null (which is the cause of the NPE). I could just catch the exception and after x amount of triggers restart the server, which would theoretically "fix" the issue, but would be a hacky workaround. On the bright side I could change such as system to report exceptions automatically, but I would let it stay how it currently is.
If anyone has an idea how to fix this, or could provide more insight on this, feel free to do so.
Hey, could you search for "Error parsing config for world" or "Error parsing config for enchantment" in the log next time this occurs?
Continues for a lot longer, this is just after the error happened one time earlier today.
Okay this will help. I recommend for you to revisit that configuration (delete it and let it regenerate if you don't need it). The bug can be reproduced by entering this world (I think). I will look if I can help in this debug process in the future, but meh.
Delete the config within the enchantment+ folder right?
yes
Just confirming, to disable an enchant is it Probability: -1.0 or Probability: -1
-1.0
Alright thank you, will let you know if the issue happens again. :D
The issue is still happening but I think it could be to do with other worlds as well as the one I had already done
Could it be an issue that our config version was only 1.0.0?
I'll regen all configs in the morning and let you know if it happens again.
The configuration version doesn't really matter as we haven't added anything breaking (there was a minor addition (the AOE), but that defaults). Now, I could be wrong that misconfiguration is at fault, but I highly assume it is
Is it still an issue for you or can I close the Issue?
I haven't seen it happening, I just visited every world and it seems to be fine now.
Go ahead and close, I can reopen if we notice it again! :D
Thank you again for your help :)
Hey I contacted you about this on Discord previously, but since your account was deleted I thought it's best to move it to here.
Enchantments Plus v2.2.2 Paper Spigot 184