Class PluginCommand

java.lang.Object
org.woftnw.eof.command.PluginCommand
Direct Known Subclasses:
AbilitiesCommand, AttributesCommand, RootCommand, SettingsCommand, TribeCommand

public abstract class PluginCommand extends Object
Represents a plugin command.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final ElytrasOfFire
    The plugin instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Set up this command.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    respond(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, String message)
    Respond to the sender with a message.
    static void
    respond(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, net.kyori.adventure.text.Component message)
    Respond to the sender with a message.
    static void
    respondError(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, String message)
    Respond to the sender with a red error message.

    Methods inherited from class Object

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

    • PLUGIN

      protected final ElytrasOfFire PLUGIN
      The plugin instance.
  • Constructor Details

    • PluginCommand

      public PluginCommand(ElytrasOfFire plugin)
      Set up this command.
      Parameters:
      plugin - The plugin instance.
  • Method Details

    • respond

      public static void respond(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, String message)
      Respond to the sender with a message.
      Parameters:
      context - The command context.
      message - The message to send.
    • respond

      public static void respond(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, net.kyori.adventure.text.Component message)
      Respond to the sender with a message.
      Parameters:
      context - The command context.
      message - The message to send.
    • respondError

      public static void respondError(@NonNull com.mojang.brigadier.context.CommandContext<io.papermc.paper.command.brigadier.CommandSourceStack> context, String message)
      Respond to the sender with a red error message.
      Parameters:
      context - The command context.
      message - The message to send.