Class DefaultSpigotCommandContext

java.lang.Object
me.bristermitten.mittenlib.gui.spigot.command.DefaultSpigotCommandContext
All Implemented Interfaces:
CommandContext, SpigotCommandContext

public class DefaultSpigotCommandContext extends Object implements SpigotCommandContext
  • Constructor Details

    • DefaultSpigotCommandContext

      public DefaultSpigotCommandContext(Player player)
  • Method Details

    • player

      public Player player()
      Description copied from interface: SpigotCommandContext
      The player executing the command / viewing the GUI.
      Specified by:
      player in interface SpigotCommandContext
    • closeInventory

      public void closeInventory()
      Description copied from interface: SpigotCommandContext
      Close the inventory of the player associated with this context. Note: In most cases, closing the inventory should be done with a Message and Command that explicitly closes it.
      Specified by:
      closeInventory in interface SpigotCommandContext