Class CommandCauses

java.lang.Object
net.okocraft.box.feature.command.event.stock.CommandCauses

public final class CommandCauses extends Object
A class for implementing StockEvent.Cause.
  • Method Details

    • deposit

      public static @NotNull StockEvent.Cause deposit(@NotNull @NotNull Player player)
    • withdraw

      public static @NotNull StockEvent.Cause withdraw(@NotNull @NotNull Player player)
    • adminResetAll

      public static @NotNull StockEvent.Cause adminResetAll(@NotNull @NotNull CommandSender sender)
      Captures the sender who confirmed a full reset.
      Parameters:
      sender - the confirming command sender
      Returns:
      the full reset cause, distinct from a single-item reset