12
12
import xyz .theprogramsrc .supercoreapi .global .translations .Base ;
13
13
import xyz .theprogramsrc .supercoreapi .global .translations .TranslationManager ;
14
14
import xyz .theprogramsrc .supercoreapi .global .utils .Utils ;
15
+ import xyz .theprogramsrc .supercoreapi .spigot .events .EventManager ;
15
16
import xyz .theprogramsrc .supercoreapi .spigot .items .PreloadedItems ;
16
17
import xyz .theprogramsrc .supercoreapi .spigot .storage .SettingsStorage ;
17
18
import xyz .theprogramsrc .supercoreapi .spigot .utils .SpigotTasks ;
@@ -35,6 +36,7 @@ public abstract class SpigotPlugin extends JavaPlugin implements SuperPlugin<Jav
35
36
private PreloadedItems preloadedItems ;
36
37
private DependencyManager dependencyManager ;
37
38
private SkinTextureManager skinManager ;
39
+ private EventManager eventManager ;
38
40
39
41
@ Override
40
42
public void onLoad () {
@@ -66,6 +68,7 @@ public void onEnable() {
66
68
this .skinManager = new SkinTextureManager ();
67
69
this .spigotTasks = new SpigotTasks (this );
68
70
this .preloadedItems = new PreloadedItems (this );
71
+ this .eventManager = new EventManager (this );
69
72
PluginClassLoader pluginClassLoader = new ReflectionClassLoader (this );
70
73
this .dependencyManager = new DependencyManager (this , pluginClassLoader );
71
74
this .dependencyManager .loadDependencies (Dependencies .get ());
@@ -238,4 +241,12 @@ public void emergencyStop() {
238
241
public boolean isEmergencyStop () {
239
242
return emergencyStop ;
240
243
}
244
+
245
+ /**
246
+ * Gets the event manager
247
+ * @return the event manager
248
+ */
249
+ public EventManager getEventManager () {
250
+ return eventManager ;
251
+ }
241
252
}
0 commit comments