Class SubStartEvent

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

public class SubStartEvent extends Event implements SubEvent, Cancellable
Server Start Event
  • Constructor Details

    • SubStartEvent

      public SubStartEvent(UUID player, SubServer server)
      Server Start Event
      Parameters:
      player - Player Starting Server
      server - Server Starting
  • Method Details

    • getServer

      public SubServer getServer()
      Gets the Server Effected
      Returns:
      The Server Effected
    • 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