Contents
Class JoinPermissionProvider
java.lang.Object
com.hypixel.hytale.server.core.modules.accesscontrol.provider.JoinPermissionProvider
- All Implemented Interfaces:
AccessProvider
Refuses a player who does not hold
HytalePermissions.SERVER_JOIN while the server
requires it, which is what the whitelist of a server is.
The permission belongs to no group, so a server that turns the requirement on refuses everyone until it grants it. An operator keeps their way in, because the admin group holds every permission.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JoinPermissionProvider
public JoinPermissionProvider()
-
-
Method Details
-
getDisconnectReason
Description copied from interface:AccessProviderReturns anOptionalof typeMessagethat provides a disconnect reason.If the
Optionalcontains aMessage, the connection will be terminated with that message as the reason. An emptyOptionalwill be ignored and the connection proceeds.- Specified by:
getDisconnectReasonin interfaceAccessProvider- Parameters:
uuid- TheUUIDof the player to check.- Returns:
- the disconnect reason,
Optional.empty()for no reason.
-