Class SniperSender
java.lang.Object
com.thevoxelbox.voxelsniper.sniper.SniperSender
- All Implemented Interfaces:
SniperCommander
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSniperSender(CommandSender commandSender) Create a sniper sender from a command sender. -
Method Summary
Modifier and TypeMethodDescriptionReturn the command sendervoidprint(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, waitMethods 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:SniperCommanderReturn the command sender- Specified by:
getCommandSenderin interfaceSniperCommander- Returns:
- the command sender
-
print
public void print(com.sk89q.worldedit.util.formatting.text.Component component, boolean prefix) Description copied from interface:SniperCommanderSends a component to a sniper. This method potentially adds the prefix and handle translations.- Specified by:
printin interfaceSniperCommander- Parameters:
component- componentprefix- prefix
-