public class IslandCreateEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandCreateEvent(SuperiorPlayer superiorPlayer,
Island island)
Deprecated.
See IslandCreateEvent(SuperiorPlayer, Island, String)
|
IslandCreateEvent(SuperiorPlayer superiorPlayer,
Island island,
java.lang.String schematic)
The constructor for the event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canTeleport()
Check if the player should get teleported when the process finishes.
|
SuperiorPlayer |
getPlayer()
Get the player who created the island.
|
java.lang.String |
getSchematic()
Get the schematic that was used.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setTeleport(boolean teleport)
Set whether or not the player should be teleported to the island when the process finishes.
|
getHandlerList, getHandlers, getIsland
@Deprecated public IslandCreateEvent(SuperiorPlayer superiorPlayer, Island island)
superiorPlayer
- The player who created the island.island
- The island object that was created.public IslandCreateEvent(SuperiorPlayer superiorPlayer, Island island, java.lang.String schematic)
superiorPlayer
- The player who created the island.island
- The island object that was created.schematic
- The schematic that was used.public SuperiorPlayer getPlayer()
public java.lang.String getSchematic()
public boolean canTeleport()
public void setTeleport(boolean teleport)
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable