Interface SniperCommander
- All Known Implementing Classes:
Sniper
,SniperSender
public interface SniperCommander
-
Method Summary
Modifier and TypeMethodDescriptiondefault ParserContext
Create a parser context from the sniper commander.Return the command senderdefault void
print
(com.sk89q.worldedit.util.formatting.text.Component component) Sends a component to a sniper.void
print
(com.sk89q.worldedit.util.formatting.text.Component component, boolean prefix) Sends a component to a sniper.
-
Method Details
-
getCommandSender
CommandSender getCommandSender()Return the command sender- Returns:
- the command sender
- Since:
- 3.0.0
-
createParserContext
Create a parser context from the sniper commander.- Returns:
- the parser context
- Since:
- 3.0.0
-
print
default void print(com.sk89q.worldedit.util.formatting.text.Component component) Sends a component to a sniper. This method adds the prefix and handle translations.- Parameters:
component
- component- Since:
- 2.7.0
-
print
void print(com.sk89q.worldedit.util.formatting.text.Component component, boolean prefix) Sends a component to a sniper. This method potentially adds the prefix and handle translations.- Parameters:
component
- componentprefix
- prefix- Since:
- 2.7.0
-