Class SubRemoveServerEvent

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

public class SubRemoveServerEvent extends Event implements SubEvent, Cancellable
Server Remove Event
  • Constructor Details

    • SubRemoveServerEvent

      public SubRemoveServerEvent(UUID player, Host host, Server server)
      Server Remove Event
      Parameters:
      player - Player Adding Server
      host - Host of SubServer (or null for normal Server)
      server - Server Starting
  • Method Details

    • getServer

      public Server getServer()
      Gets the Server to be Removed
      Returns:
      The Server to be Removed
    • getHost

      public Host getHost()
      Gets the Host of the Server
      Returns:
      The Host of the Server or null if isn't a SubServer
    • 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