Annotation Interface RelaySub


@Retention(RUNTIME) @Target(METHOD) public @interface RelaySub
Marks a method as a subscriber for a channel.

The method must take exactly one RelayEvent parameter and live in a RelayListener class. It runs on the "DaRelay-Dispatcher" thread, NOT the server's main thread: on Bukkit/Paper, Forge or Fabric, hop back to the main thread (scheduler / server.execute) before touching game state.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details