1212import xyz .theprogramsrc .supercoreapi .global .translations .Base ;
1313import xyz .theprogramsrc .supercoreapi .global .translations .TranslationManager ;
1414import xyz .theprogramsrc .supercoreapi .global .utils .Utils ;
15+ import xyz .theprogramsrc .supercoreapi .spigot .events .EventManager ;
1516import xyz .theprogramsrc .supercoreapi .spigot .items .PreloadedItems ;
1617import xyz .theprogramsrc .supercoreapi .spigot .storage .SettingsStorage ;
1718import xyz .theprogramsrc .supercoreapi .spigot .utils .SpigotTasks ;
@@ -35,6 +36,7 @@ public abstract class SpigotPlugin extends JavaPlugin implements SuperPlugin<Jav
3536 private PreloadedItems preloadedItems ;
3637 private DependencyManager dependencyManager ;
3738 private SkinTextureManager skinManager ;
39+ private EventManager eventManager ;
3840
3941 @ Override
4042 public void onLoad () {
@@ -66,6 +68,7 @@ public void onEnable() {
6668 this .skinManager = new SkinTextureManager ();
6769 this .spigotTasks = new SpigotTasks (this );
6870 this .preloadedItems = new PreloadedItems (this );
71+ this .eventManager = new EventManager (this );
6972 PluginClassLoader pluginClassLoader = new ReflectionClassLoader (this );
7073 this .dependencyManager = new DependencyManager (this , pluginClassLoader );
7174 this .dependencyManager .loadDependencies (Dependencies .get ());
@@ -238,4 +241,12 @@ public void emergencyStop() {
238241 public boolean isEmergencyStop () {
239242 return emergencyStop ;
240243 }
244+
245+ /**
246+ * Gets the event manager
247+ * @return the event manager
248+ */
249+ public EventManager getEventManager () {
250+ return eventManager ;
251+ }
241252}
0 commit comments