Class SniperSender

java.lang.Object
com.thevoxelbox.voxelsniper.sniper.SniperSender
All Implemented Interfaces:
SniperCommander

public class SniperSender extends Object implements SniperCommander
  • Field Details

  • Constructor Details

    • SniperSender

      public SniperSender(CommandSender commandSender)
      Create a sniper sender from a command sender.
      Parameters:
      commandSender - the command sender
      Since:
      3.0.0
  • Method Details

    • getCommandSender

      public CommandSender getCommandSender()
      Description copied from interface: SniperCommander
      Return the command sender
      Specified by:
      getCommandSender in interface SniperCommander
      Returns:
      the command sender
    • print

      public void print(com.sk89q.worldedit.util.formatting.text.Component component, boolean prefix)
      Description copied from interface: SniperCommander
      Sends a component to a sniper. This method potentially adds the prefix and handle translations.
      Specified by:
      print in interface SniperCommander
      Parameters:
      component - component
      prefix - prefix