Class RelayCommands

java.lang.Object
com.iantapply.relay.paper.command.RelayCommands

public final class RelayCommands extends Object
Small command tree that adapts Paper senders to Relay's operational services.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Permission required for every Relay administration command.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RelayCommands(com.iantapply.relay.core.DefaultMessagingService messaging, Supplier<List<String>> diagnostics)
    Creates the command adapter.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.brigadier.tree.LiteralCommandNode<io.papermc.paper.command.brigadier.CommandSourceStack>
    Builds the complete /relay command tree.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PERMISSION

      public static final String PERMISSION
      Permission required for every Relay administration command.
      See Also:
  • Constructor Details

    • RelayCommands

      public RelayCommands(com.iantapply.relay.core.DefaultMessagingService messaging, Supplier<List<String>> diagnostics)
      Creates the command adapter.
      Parameters:
      messaging - active Relay messaging service
      diagnostics - safe platform diagnostic lines
  • Method Details

    • create

      public com.mojang.brigadier.tree.LiteralCommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> create()
      Builds the complete /relay command tree.
      Returns:
      lifecycle-registerable command root