Interface RegistryReconfigurer
An interface for resending registries to players without relogging.
- Since:
- 2.2.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryReconfigurerCreates a new RegistryReconfigurer instance.static RegistryReconfigurernewReconfigurer(Plugin provider) Creates a new RegistryReconfigurer instance.default voidresendRegistries(Player player) Resends the registries to the player.voidresendRegistries(Player player, @Nullable Consumer<PlayerConfigurationConnection> consumer) Resends the registries to the player.
-
Field Details
-
WIRE
-
-
Method Details
-
newReconfigurer
Creates a new RegistryReconfigurer instance.- Returns:
- a new RegistryReconfigurer instance
-
newReconfigurer
Creates a new RegistryReconfigurer instance.- Parameters:
provider- the plugin providing the RegistryReconfigurer- Returns:
- a new RegistryReconfigurer instance
-
resendRegistries
Resends the registries to the player.- Parameters:
player- the player to resend the registries to- Throws:
HorriblePlayerLoginEvent- if there are plugins on the server that usePlayerLoginEvent
-
resendRegistries
@AsOf("2.2.0") void resendRegistries(Player player, @Nullable Consumer<PlayerConfigurationConnection> consumer) throws HorriblePlayerLoginEvent Resends the registries to the player.- Parameters:
player- the player to resend the registries toconsumer- the consumer to call after the player has been placed into the configuration phase, but before the registries have been resent.- Throws:
HorriblePlayerLoginEvent- if there are plugins on the server that usePlayerLoginEvent
-