Package org.bukkit.command
Class CommandSender.Spigot
java.lang.Object
org.bukkit.command.CommandSender.Spigot
- Direct Known Subclasses:
Entity.Spigot
- Enclosing interface:
CommandSender
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendMessage
(UUID sender, net.md_5.bungee.api.chat.BaseComponent component) Sends this sender a chat component.void
sendMessage
(UUID sender, net.md_5.bungee.api.chat.BaseComponent... components) Sends an array of components as a single message to the sender.void
sendMessage
(net.md_5.bungee.api.chat.BaseComponent component) Sends this sender a chat component.void
sendMessage
(net.md_5.bungee.api.chat.BaseComponent... components) Sends an array of components as a single message to the sender.
-
Constructor Details
-
Spigot
public Spigot()
-
-
Method Details
-
sendMessage
public void sendMessage(@NotNull net.md_5.bungee.api.chat.BaseComponent component) Sends this sender a chat component.- Parameters:
component
- the components to send
-
sendMessage
public void sendMessage(@NotNull net.md_5.bungee.api.chat.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 net.md_5.bungee.api.chat.BaseComponent component) Sends this sender a chat component.- Parameters:
sender
- the sender of the messagecomponent
- the components to send
-
sendMessage
public void sendMessage(@Nullable UUID sender, @NotNull net.md_5.bungee.api.chat.BaseComponent... components) Sends an array of components as a single message to the sender.- Parameters:
sender
- the sender of the messagecomponents
- the components to send
-