File tree 1 file changed +6
-11
lines changed
spigot/src/main/java/org/geysermc/floodgate
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,12 @@ public void onEnable() {
67
67
boolean usePaperListener = ReflectionUtils .getClassSilently (
68
68
"com.destroystokyo.paper.event.profile.PreFillProfileEvent" ) != null ;
69
69
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
+ );
81
76
82
77
injector .getInstance (HandshakeHandlers .class )
83
78
.addHandshakeHandler (injector .getInstance (SpigotHandshakeHandler .class ));
You can’t perform that action at this time.
0 commit comments