Class OffhandCommand

java.lang.Object
org.geysermc.geyser.command.GeyserCommand
org.geysermc.geyser.command.defaults.OffhandCommand

public class OffhandCommand extends GeyserCommand
  • Constructor Details

  • Method Details

    • execute

      public void execute(GeyserSession session, CommandSender sender, String[] args)
      Specified by:
      execute in class GeyserCommand
    • isExecutableOnConsole

      public boolean isExecutableOnConsole()
      Description copied from class: GeyserCommand
      If false, hides the command from being shown on the Geyser Standalone GUI.
      Overrides:
      isExecutableOnConsole in class GeyserCommand
      Returns:
      true if the command can be run on the server console
    • isBedrockOnly

      public boolean isBedrockOnly()
      Description copied from class: GeyserCommand
      Used to send a deny message to Java players if this command can only be used by Bedrock players.
      Overrides:
      isBedrockOnly in class GeyserCommand
      Returns:
      true if this command can only be used by Bedrock players.