Class RemoteServerConnectRequestEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.remote.RemoteServerConnectRequestEvent
All Implemented Interfaces:
Cancellable

public class RemoteServerConnectRequestEvent extends Event implements Cancellable
Gets called whenever a server wants to connect to the network.

Cancelling this event causes the server to fail connecting to the network. Keep in mind that this event is async.

This event may be called multiple times for the same join process, in case the remote server wants to be sure that there is no other server with the same channel name connecting at the same time.

  • Constructor Details

    • RemoteServerConnectRequestEvent

      public RemoteServerConnectRequestEvent(String bungeeChannelName, boolean isHub, int playersCount, int maxPlayersCount, int bedwarsAPIVersion, String bedwarsPluginVersion, String addonPluginVersion)
  • Method Details

    • getBungeeChannelName

      public String getBungeeChannelName()
    • isHub

      public boolean isHub()
    • getPlayersCount

      public int getPlayersCount()
    • getMaxPlayersCount

      public int getMaxPlayersCount()
    • getBedwarsAPIVersion

      public int getBedwarsAPIVersion()
    • getBedwarsPluginVersion

      public String getBedwarsPluginVersion()
    • getAddonPluginVersion

      public String getAddonPluginVersion()
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()