Class Requeue


public class Requeue extends Module
On 2b2t, if we stop responding to KeepAlive packets we will get sent back to queue not to the end of the queue, but as if we were doing a reconnect queue skip so this can be useful for resetting the player state without having to do a full reconnect
  • Constructor Details

    • Requeue

      public Requeue()
  • Method Details

    • enabledSetting

      public boolean enabledSetting()
      Description copied from class: Module
      Whether this module should be enabled automatically on startup Typically, this should be read from a config boolean value
      Specified by:
      enabledSetting in class Module
    • registerEvents

      public List<com.github.rfresh2.EventConsumer<?>> registerEvents()
      Description copied from class: Module
      Override this to register module events
      Overrides:
      registerEvents in class Module
    • registerClientPacketHandlerCodec

      public PacketHandlerCodec registerClientPacketHandlerCodec()
      Description copied from class: Module
      Override this to register client packet handlers Meaning packets between zenith and the destination server
      Overrides:
      registerClientPacketHandlerCodec in class Module
    • onEnable

      public void onEnable()
      Description copied from class: Module
      Override to run a custom hook when the module is enabled
      Overrides:
      onEnable in class Module
    • onDisable

      public void onDisable()
      Description copied from class: Module
      Override to run a custom hook when the module is disabled
      Overrides:
      onDisable in class Module