@@ -50,9 +50,6 @@ public boolean initialized(String name) {
5050
5151 @ SneakyThrows
5252 public EventListener getListener (String name ) {
53- if (GroovyIntegration .isIntegrated ()) {
54- return GroovyIntegration .getListener (name );
55- }
5653 name = name .toLowerCase ();
5754 if (mapping .containsKey (name )) {
5855 return mapping .get (name ).getListener ();
@@ -70,10 +67,8 @@ public EventListener getListener(String name) {
7067 }
7168
7269 protected void loadClasses () {
73- if (!GroovyIntegration .isIntegrated ()) {
74- URL path = Bukkit .class .getProtectionDomain ().getCodeSource ().getLocation ();
75- loadClasses (null , Bukkit .class .getClassLoader (), path , "org/bukkit/event/(.*)/(.*)\\ .class" );
76- }
70+ URL path = Bukkit .class .getProtectionDomain ().getCodeSource ().getLocation ();
71+ loadClasses (null , Bukkit .class .getClassLoader (), path , "org/bukkit/event/(.*)/(.*)\\ .class" );
7772 }
7873
7974 protected void loadClasses (Plugin plugin , ClassLoader loader , URL path , String regex ) {
@@ -118,9 +113,6 @@ public void init(String name) {
118113
119114 @ SneakyThrows
120115 public void init (Plugin plugin ) {
121- if (GroovyIntegration .isIntegrated ()) {
122- GroovyIntegration .loadClasses (plugin );
123- }
124116 if (plugins .add (plugin .getName ().toLowerCase ())) {
125117 Class <?> pluginClass = plugin .getClass ();
126118 URL path = pluginClass .getProtectionDomain ().getCodeSource ().getLocation ();
0 commit comments