Class SubAddHostEvent

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

public class SubAddHostEvent extends Event implements SubEvent, Cancellable
Host Add Event
  • Constructor Details

    • SubAddHostEvent

      public SubAddHostEvent(UUID player, Host host)
      Host Add Event
      Parameters:
      player - Player Adding Server
      host - Host Being Added
  • Method Details

    • getHost

      public Host getHost()
      Gets the Host to be Added
      Returns:
      The Host to be Added
    • 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