mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-26 19:17:40 +01:00
Avoid catching Error (dangerous behaviour)
This commit is contained in:
parent
5cdfe690f4
commit
2dd8fcb13c
@ -78,7 +78,7 @@ public class AddonsManager {
|
|||||||
plugin.log("Skipping " + addon.getDescription().getName() + " as it is incompatible with the current version of BentoBox or of server software...");
|
plugin.log("Skipping " + addon.getDescription().getName() + " as it is incompatible with the current version of BentoBox or of server software...");
|
||||||
plugin.log("NOTE: The addon is referring to no longer existing classes.");
|
plugin.log("NOTE: The addon is referring to no longer existing classes.");
|
||||||
plugin.log("NOTE: DO NOT report this as a bug from BentoBox.");
|
plugin.log("NOTE: DO NOT report this as a bug from BentoBox.");
|
||||||
} catch (Exception | Error e) {
|
} catch (Exception e) {
|
||||||
// Unhandled exception. We'll give a bit of debug here.
|
// Unhandled exception. We'll give a bit of debug here.
|
||||||
// Set the AddonState as "ERROR".
|
// Set the AddonState as "ERROR".
|
||||||
addon.setState(Addon.State.ERROR);
|
addon.setState(Addon.State.ERROR);
|
||||||
|
Loading…
Reference in New Issue
Block a user