Package org.geysermc.floodgate.core
Class Netty4
java.lang.Object
org.geysermc.floodgate.core.Netty4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.util.AttributeKey<org.geysermc.api.connection.Connection>io.netty.util.AttributeKey<net.kyori.adventure.text.Component>static voidremoveHandler(io.netty.channel.ChannelPipeline pipeline, String handler) This method is used in Addons.
Most addons can be removed once the player associated to the channel has been logged in, but they should also be removed once the inject is removed.
-
Constructor Details
-
Netty4
public Netty4()
-
-
Method Details
-
kickMessageAttribute
@Bean @Singleton @Named("kickMessageAttribute") public io.netty.util.AttributeKey<net.kyori.adventure.text.Component> kickMessageAttribute() -
connectionAttribute
@Bean @Singleton @Named("connectionAttribute") public io.netty.util.AttributeKey<org.geysermc.api.connection.Connection> connectionAttribute() -
removeHandler
This method is used in Addons.
Most addons can be removed once the player associated to the channel has been logged in, but they should also be removed once the inject is removed. Because of how Netty works it will throw an exception and we don't want that. This method removes those handlers safely.- Parameters:
pipeline- the pipelinehandler- the name of the handler to remove
-