Class SubRemoveHostEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
net.ME1312.SubServers.Bungee.Event.SubRemoveHostEvent
All Implemented Interfaces:
Cancellable, SubEvent

public class SubRemoveHostEvent extends Event implements SubEvent, Cancellable
Host Remove Event
  • Constructor Details

    • SubRemoveHostEvent

      public SubRemoveHostEvent(UUID player, Host host)
      Host Remove Event
      Parameters:
      player - Player Adding Server
      host - Host to be added
  • Method Details

    • getHost

      public Host getHost()
      Gets the Host to be Removed
      Returns:
      The Host to be Removed
    • getPlayer

      public UUID getPlayer()
      Gets the player that triggered the Event
      Returns:
      The Player that triggered this Event or null if Console
    • isCancelled

      public boolean isCancelled()
      Gets the Cancelled Status
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      Cancelled Status
    • setCancelled

      public void setCancelled(boolean value)
      Sets the Cancelled Status
      Specified by:
      setCancelled in interface Cancellable