forked from HMJosh/DeathMessages
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6d938e
commit e39bc65
Showing
6 changed files
with
7 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
180 changes: 0 additions & 180 deletions
180
Core/src/main/java/dev/mrshawn/deathmessages/commands/CommandEdit.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Core/src/main/java/dev/mrshawn/deathmessages/enums/DeathModes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package dev.mrshawn.deathmessages.enums; | ||
|
||
public enum DeathModes { | ||
|
||
BASIC_MODE("Basic-Mode"), | ||
MOBS("Mobs"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
Core/src/main/java/dev/mrshawn/deathmessages/utils/EventUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
package dev.mrshawn.deathmessages.utils; | ||
|
||
import dev.mrshawn.deathmessages.DeathMessages; | ||
import org.bukkit.Bukkit; | ||
|
||
import org.bukkit.event.Listener; | ||
import org.bukkit.plugin.PluginManager; | ||
|
||
public class EventUtils { | ||
|
||
public static void registerEvents(Listener... listeners) { | ||
PluginManager pluginManager = Bukkit.getPluginManager(); | ||
|
||
for (Listener listener : listeners) { | ||
pluginManager.registerEvents(listener, DeathMessages.getInstance()); | ||
DeathMessages.getInstance().getServer().getPluginManager().registerEvents(listener, DeathMessages.getInstance()); | ||
} | ||
} | ||
} |