Class IslandBanPlayerEvent
java.lang.Object
org.bukkit.event.Event
us.talabrek.ultimateskyblock.api.event.island.IslandEvent
us.talabrek.ultimateskyblock.api.event.island.CancellableIslandEvent
us.talabrek.ultimateskyblock.api.event.island.IslandBanPlayerEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Thrown when a player is banned from an island.
- Since:
- 2.7.8
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionIslandBanPlayerEvent
(@NotNull IslandInfo islandInfo, @NotNull org.bukkit.OfflinePlayer target, @Nullable org.bukkit.OfflinePlayer initializer) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
@Nullable org.bukkit.OfflinePlayer
Gets theOfflinePlayer
initializing the ban event, if available.@NotNull org.bukkit.OfflinePlayer
Gets theOfflinePlayer
representing the banned player.Methods inherited from class us.talabrek.ultimateskyblock.api.event.island.CancellableIslandEvent
isCancelled, setCancelled
Methods inherited from class us.talabrek.ultimateskyblock.api.event.island.IslandEvent
getIslandInfo
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
IslandBanPlayerEvent
public IslandBanPlayerEvent(@NotNull @NotNull IslandInfo islandInfo, @NotNull @NotNull org.bukkit.OfflinePlayer target, @Nullable @Nullable org.bukkit.OfflinePlayer initializer)
-
-
Method Details
-
getTarget
@NotNull public @NotNull org.bukkit.OfflinePlayer getTarget()Gets theOfflinePlayer
representing the banned player.- Returns:
- The
OfflinePlayer
representing the banned player.
-
getInitializer
@Nullable public @Nullable org.bukkit.OfflinePlayer getInitializer()Gets theOfflinePlayer
initializing the ban event, if available.- Returns:
- The
OfflinePlayer
initializing the ban event, or null if the initializer is unknown.
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-