Package org.bukkit.command
Class CommandSender.Spigot
- java.lang.Object
-
- org.bukkit.command.CommandSender.Spigot
-
- Direct Known Subclasses:
Entity.Spigot
- Enclosing interface:
- CommandSender
public static class CommandSender.Spigot extends Object
-
-
Constructor Summary
Constructors Constructor Description Spigot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendMessage(UUID sender, BaseComponent component)
Sends this sender a chat component.void
sendMessage(UUID sender, BaseComponent... components)
Sends an array of components as a single message to the sender.void
sendMessage(BaseComponent component)
Sends this sender a chat component.void
sendMessage(BaseComponent... components)
Sends an array of components as a single message to the sender.
-
-
-
Method Detail
-
sendMessage
public void sendMessage(@NotNull BaseComponent component)
Sends this sender a chat component.- Parameters:
component
- the components to send
-
sendMessage
public void sendMessage(@NotNull BaseComponent... components)
Sends an array of components as a single message to the sender.- Parameters:
components
- the components to send
-
sendMessage
public void sendMessage(@Nullable UUID sender, @NotNull BaseComponent component)
Sends this sender a chat component.- Parameters:
component
- the components to sendsender
- the sender of the message
-
sendMessage
public void sendMessage(@Nullable UUID sender, @NotNull BaseComponent... components)
Sends an array of components as a single message to the sender.- Parameters:
components
- the components to sendsender
- the sender of the message
-
-