Class RECommand.ExitOfferCommand

java.lang.Object
co.aikar.commands.BaseCommand
me.EtienneDx.RealEstate.RECommand.ExitOfferCommand
Enclosing class:
RECommand

public class RECommand.ExitOfferCommand extends co.aikar.commands.BaseCommand
Subcommands for managing exit offers.

This inner class provides commands to view, create, accept, refuse, or cancel an exit offer.

  • Constructor Summary

    Constructors
    Constructor
    Description
    The ExitOfferCommand constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(org.bukkit.entity.Player player)
    Accepts the current exit offer.
    void
    cancel(org.bukkit.entity.Player player)
    Cancels the current exit offer.
    void
    create(org.bukkit.entity.Player player, Double price)
    Creates an exit offer with the specified price.
    void
    info(org.bukkit.entity.Player player)
    Displays information about the current exit offer.
    void
    refuse(org.bukkit.entity.Player player)
    Refuses the current exit offer.

    Methods inherited from class co.aikar.commands.BaseCommand

    canExecute, doHelp, doHelp, getCommandHelp, getContextFlags, getCurrentCommandIssuer, getCurrentCommandManager, getDefaultRegisteredCommand, getExceptionHandler, getExecCommandLabel, getExecSubcommand, getLastCommandOperationContext, getName, getOrigArgs, getRegisteredCommands, getRequiredPermissions, hasPermission, hasPermission, help, help, requiresPermission, setContextFlags, setExceptionHandler, showCommandHelp, showSyntax, tabComplete, tabComplete

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExitOfferCommand

      public ExitOfferCommand()
      The ExitOfferCommand constructor.

      This is the constructor for the ExitOfferCommand class.

  • Method Details

    • info

      public void info(org.bukkit.entity.Player player)
      Displays information about the current exit offer.
      Parameters:
      player - the player executing the command
    • create

      public void create(org.bukkit.entity.Player player, Double price)
      Creates an exit offer with the specified price.
      Parameters:
      player - the player creating the exit offer
      price - the price of the exit offer (must be positive)
    • accept

      public void accept(org.bukkit.entity.Player player)
      Accepts the current exit offer.
      Parameters:
      player - the player accepting the exit offer
    • refuse

      public void refuse(org.bukkit.entity.Player player)
      Refuses the current exit offer.
      Parameters:
      player - the player refusing the exit offer
    • cancel

      public void cancel(org.bukkit.entity.Player player)
      Cancels the current exit offer.
      Parameters:
      player - the player cancelling the exit offer