Skip to content

Commit 21a1fc6

Browse files
author
TheProgramSrc
committed
Change log:
• EventManager fixes
1 parent da79966 commit 21a1fc6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>xyz.theprogramsrc</groupId>
88
<artifactId>SuperCoreAPI</artifactId>
9-
<version>3.2.5</version>
9+
<version>3.2.6</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SuperCoreAPI</name>

src/main/java/xyz/theprogramsrc/supercoreapi/spigot/SpigotPlugin.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import xyz.theprogramsrc.supercoreapi.global.translations.Base;
1313
import xyz.theprogramsrc.supercoreapi.global.translations.TranslationManager;
1414
import xyz.theprogramsrc.supercoreapi.global.utils.Utils;
15+
import xyz.theprogramsrc.supercoreapi.spigot.events.EventManager;
1516
import xyz.theprogramsrc.supercoreapi.spigot.items.PreloadedItems;
1617
import xyz.theprogramsrc.supercoreapi.spigot.storage.SettingsStorage;
1718
import 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

Comments
 (0)