Network Full
Methods
Code example
/*
You can cancel the event, then the player will be shown a predefined message from Wale.
Or you handle this event yourself and decide what happens with the connection.
*/
@Eventable
public void handle(NetworkFullEvent event) {
var player = BungeeCord.getInstance().getPlayer(event.getPlayerUniqueId());
if (!player.hasPermission("server.full.join") { // Example permission
event.cancel();
}
}Last updated