-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PreTimedTypeResetEvent to allow devs to add custom rewards
- Loading branch information
1 parent
d2fe20f
commit 2135b80
Showing
2 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
src/main/java/us/ajg0702/leaderboards/api/events/PreTimedTypeResetEvent.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,36 @@ | ||
package us.ajg0702.leaderboards.api.events; | ||
|
||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
import org.jetbrains.annotations.NotNull; | ||
import us.ajg0702.leaderboards.boards.TimedType; | ||
|
||
public class PreTimedTypeResetEvent extends Event { | ||
|
||
private final String board; | ||
private final TimedType type; | ||
|
||
|
||
public PreTimedTypeResetEvent(String board, TimedType type) { | ||
this.board = board; | ||
this.type = type; | ||
} | ||
|
||
public String getBoard() { | ||
return board; | ||
} | ||
|
||
public TimedType getType() { | ||
return type; | ||
} | ||
|
||
private static final HandlerList HANDLERS = new HandlerList(); | ||
|
||
public @NotNull HandlerList getHandlers() { | ||
return HANDLERS; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return HANDLERS; | ||
} | ||
} |
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