-
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.
add TeleportEvent and change event call
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package me.hsgamer.yatpa.event; | ||
|
||
import me.hsgamer.yatpa.request.RequestEntry; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class TeleportEvent extends Event { | ||
private static final HandlerList HANDLERS = new HandlerList(); | ||
private final RequestEntry requestEntry; | ||
|
||
public TeleportEvent(RequestEntry requestEntry) { | ||
this.requestEntry = requestEntry; | ||
} | ||
|
||
public static @NotNull HandlerList getHandlerList() { | ||
return HANDLERS; | ||
} | ||
|
||
@Override | ||
public @NotNull HandlerList getHandlers() { | ||
return HANDLERS; | ||
} | ||
|
||
public RequestEntry getRequestEntry() { | ||
return requestEntry; | ||
} | ||
} |
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