Skip to content

Commit e1bae57

Browse files
committed
Do not swallow errors on Spigot
1 parent c4a4487 commit e1bae57

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

spigot/src/main/java/org/geysermc/floodgate/SpigotPlugin.java

+6-11
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,12 @@ public void onEnable() {
6767
boolean usePaperListener = ReflectionUtils.getClassSilently(
6868
"com.destroystokyo.paper.event.profile.PreFillProfileEvent") != null;
6969

70-
try {
71-
platform.enable(
72-
new SpigotCommandModule(this),
73-
new SpigotAddonModule(),
74-
new PluginMessageModule(),
75-
(usePaperListener ? new PaperListenerModule() : new SpigotListenerModule())
76-
);
77-
} catch (Exception exception) {
78-
Bukkit.getPluginManager().disablePlugin(this);
79-
throw exception;
80-
}
70+
platform.enable(
71+
new SpigotCommandModule(this),
72+
new SpigotAddonModule(),
73+
new PluginMessageModule(),
74+
(usePaperListener ? new PaperListenerModule() : new SpigotListenerModule())
75+
);
8176

8277
injector.getInstance(HandshakeHandlers.class)
8378
.addHandshakeHandler(injector.getInstance(SpigotHandshakeHandler.class));

0 commit comments

Comments
 (0)