Class SpectatorToggledEvent

java.lang.Object
org.bukkit.event.Event
net.fateuhc.plugin.api.events.SpectatorToggledEvent

public class SpectatorToggledEvent extends org.bukkit.event.Event
This event is called when the player toggles their spectator mode.
Since:
API v0.4-ALPHA
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.event.HandlerList
     
    org.bukkit.entity.Player
    Get the player who has toggled spectator mode.
    boolean
    Is spectator mode enabled?

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpectatorToggledEvent

      public SpectatorToggledEvent()
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player who has toggled spectator mode.
      Returns:
      Player
    • isEnabled

      public boolean isEnabled()
      Is spectator mode enabled?
      Returns:
      Boolean
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event