Geolykt / EnchantmentsPlus

Enchantments+, a Bukkit Custom Enchantments Plugin based on Zenchantments targetted at production grade servers
GNU General Public License v3.0
38 stars 14 forks source link

Console Spam #23

Closed scottyboii closed 3 years ago

scottyboii commented 3 years ago

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

image

image

Geolykt commented 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.

Geolykt commented 3 years ago

Hey, could you search for "Error parsing config for world" or "Error parsing config for enchantment" in the log next time this occurs?

scottyboii commented 3 years ago

image Continues for a lot longer, this is just after the error happened one time earlier today.

Geolykt commented 3 years ago

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.

scottyboii commented 3 years ago

Delete the config within the enchantment+ folder right?

Geolykt commented 3 years ago

yes

scottyboii commented 3 years ago

Just confirming, to disable an enchant is it Probability: -1.0 or Probability: -1

Geolykt commented 3 years ago

-1.0

scottyboii commented 3 years ago

Alright thank you, will let you know if the issue happens again. :D

scottyboii commented 3 years ago

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.

Geolykt commented 3 years ago

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

Geolykt commented 3 years ago

Is it still an issue for you or can I close the Issue?

scottyboii commented 3 years ago

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 :)