Class ActionLimiter


public class ActionLimiter extends Module
  • Constructor Details

    • ActionLimiter

      public ActionLimiter()
  • Method Details

    • registerServerPacketHandlerCodec

      public PacketHandlerCodec registerServerPacketHandlerCodec()
      Description copied from class: Module
      Override this to register server packet handlers Meaning packets between zenith and players - both spectators and controlling player
      Overrides:
      registerServerPacketHandlerCodec 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
    • 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
    • onPlayerLoginEvent

      public void onPlayerLoginEvent(PlayerLoginEvent.Pre event)
    • onServerConnectionRemoved

      public void onServerConnectionRemoved(PlayerConnectionRemovedEvent event)
    • shouldLimit

      public boolean shouldLimit(ServerSession serverConnection)
    • isBlacklistedItem

      public boolean isBlacklistedItem(ItemStack item)