Class SniperSender
java.lang.Object
com.thevoxelbox.voxelsniper.sniper.SniperSender
- All Implemented Interfaces:
SniperCommander
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSniperSender
(CommandSender commandSender) Create a sniper sender from a command sender. -
Method Summary
Modifier and TypeMethodDescriptionReturn the command sendervoid
print
(com.sk89q.worldedit.util.formatting.text.Component component, boolean prefix) Sends a component to a sniper.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thevoxelbox.voxelsniper.sniper.SniperCommander
createParserContext, print
-
Field Details
-
commandSender
-
-
Constructor Details
-
SniperSender
Create a sniper sender from a command sender.- Parameters:
commandSender
- the command sender- Since:
- 3.0.0
-
-
Method Details
-
getCommandSender
Description copied from interface:SniperCommander
Return the command sender- Specified by:
getCommandSender
in interfaceSniperCommander
- 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 interfaceSniperCommander
- Parameters:
component
- componentprefix
- prefix
-