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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(org.bukkit.entity.Player player) Accepts the current exit offer.void
cancel
(org.bukkit.entity.Player player) Cancels the current exit offer.void
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
-
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
Creates an exit offer with the specified price.- Parameters:
player
- the player creating the exit offerprice
- 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
-