-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This event will be called upon player submits his island. Change that submission always contains "owner" id.
- Loading branch information
Showing
3 changed files
with
91 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
77 changes: 77 additions & 0 deletions
77
src/main/java/world/bentobox/checkmeout/events/IslandSubmittedEvent.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,77 @@ | ||
// | ||
// Created by BONNe | ||
// Copyright - 2022 | ||
// | ||
|
||
|
||
package world.bentobox.checkmeout.events; | ||
|
||
|
||
import org.bukkit.Location; | ||
import org.bukkit.event.HandlerList; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.UUID; | ||
|
||
import world.bentobox.bentobox.api.events.BentoBoxEvent; | ||
|
||
|
||
/** | ||
* The type Island submitted event. | ||
*/ | ||
public class IslandSubmittedEvent extends BentoBoxEvent | ||
{ | ||
/** | ||
* Instantiates a new Island submitted event. | ||
* | ||
* @param uuid the uuid | ||
* @param location the location | ||
*/ | ||
public IslandSubmittedEvent(@NotNull UUID uuid, @NotNull Location location) | ||
{ | ||
this.location = location; | ||
this.uuid = uuid; | ||
} | ||
|
||
|
||
/** | ||
* Gets location. | ||
* | ||
* @return the location | ||
*/ | ||
@NotNull | ||
public Location getLocation() | ||
{ | ||
return location; | ||
} | ||
|
||
|
||
/** | ||
* Gets uuid. | ||
* | ||
* @return the uuid | ||
*/ | ||
@NotNull | ||
public UUID getUuid() | ||
{ | ||
return uuid; | ||
} | ||
|
||
|
||
/** | ||
* The Location of submission. | ||
*/ | ||
@NotNull | ||
private final Location location; | ||
|
||
/** | ||
* The submitter. | ||
*/ | ||
@NotNull | ||
private final UUID uuid; | ||
|
||
/** | ||
* Event listener list for current | ||
*/ | ||
private static final HandlerList handlers = new HandlerList(); | ||
} |
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