mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
API: New events, move around old ones, setters
This commit is contained in:
1 parent
6a62cea52c
commit
503898a0ef
44 files changed
+538
-236
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package net.william278.huskhomes.event;
|
||||
|
||||
import net.william278.huskhomes.position.Warp;
|
||||
import net.william278.huskhomes.user.CommandUser;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Representation of an event that fires when a warp is created or updated
|
||||
*/
|
||||
public interface IWarpEditEvent extends Cancellable {
|
||||
|
||||
/**
|
||||
* Get the warp being created or updated
|
||||
*
|
||||
* @return the {@link Warp} being saved
|
||||
*/
|
||||
@NotNull
|
||||
Warp getWarp();
|
||||
|
||||
@NotNull
|
||||
CommandUser getEditor();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user