Class SubNetworkConnectEvent

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

public class SubNetworkConnectEvent extends Event implements SubEvent, Cancellable
SubData Network Connect Event
  • Constructor Details

    • SubNetworkConnectEvent

      public SubNetworkConnectEvent(DataServer network, DataClient client)
      SubData Network Connect Event
  • Method Details

    • getNetwork

      public DataServer getNetwork()
      Get the network the client is trying to connect to
      Returns:
      SubData Network
    • getClient

      public DataClient getClient()
      Get the connecting client
      Returns:
      Client
    • 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