Class BedwarsPlayerJoinTeamEvent
java.lang.Object
org.bukkit.event.Event
org.screamingsandals.bedwars.api.events.BedwarsPlayerJoinTeamEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class BedwarsPlayerJoinTeamEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionBedwarsPlayerJoinTeamEvent
(RunningTeam team, org.bukkit.entity.Player player, Game game, RunningTeam prevTeam) -
Method Summary
Modifier and TypeMethodDescriptiongetGame()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
getTeam()
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BedwarsPlayerJoinTeamEvent
public BedwarsPlayerJoinTeamEvent(RunningTeam team, org.bukkit.entity.Player player, Game game, RunningTeam prevTeam) - Parameters:
team
-player
-game
-prevTeam
-
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getPlayer
public org.bukkit.entity.Player getPlayer()- Returns:
-
getTeam
- Returns:
-
getPreviousTeam
- Returns:
-
getGame
- Returns:
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-