Class RemoteServerConnectRequestEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.remote.RemoteServerConnectRequestEvent
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionRemoteServerConnectRequestEvent
(String bungeeChannelName, boolean isHub, int playersCount, int maxPlayersCount, int bedwarsAPIVersion, String bedwarsPluginVersion, String addonPluginVersion) -
Method Summary
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
RemoteServerConnectRequestEvent
-
-
Method Details
-
getBungeeChannelName
-
isHub
public boolean isHub() -
getPlayersCount
public int getPlayersCount() -
getMaxPlayersCount
public int getMaxPlayersCount() -
getBedwarsAPIVersion
public int getBedwarsAPIVersion() -
getBedwarsPluginVersion
-
getAddonPluginVersion
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-