This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Refactor notification system, add new events and more * Resolve rollczi conversation * Resolve martin & jakub conversation * Resolve jakub conversation * Resolve Martin conversation * Remove badly usage of creating new list. * Update discord invite link
- Loading branch information
Showing
43 changed files
with
1,261 additions
and
456 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
44 changes: 17 additions & 27 deletions
44
src/main/java/com/eternalcode/check/CheckNotificationTask.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
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
37 changes: 0 additions & 37 deletions
37
src/main/java/com/eternalcode/check/NotificationAnnouncer.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/main/java/com/eternalcode/check/caller/EventCaller.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.eternalcode.check.caller; | ||
|
||
import com.eternalcode.check.user.event.CheckedUserEvent; | ||
import org.bukkit.Server; | ||
|
||
public final class EventCaller { | ||
|
||
private final Server server; | ||
|
||
public EventCaller(Server server) { | ||
this.server = server; | ||
} | ||
|
||
public <T extends CheckedUserEvent> T callEvent(T event) { | ||
this.server.getPluginManager().callEvent(event); | ||
|
||
return event; | ||
} | ||
} |
Oops, something went wrong.