Package com.velocitypowered.api.command
Interface CommandSource
-
- All Superinterfaces:
Audience
,PermissionSubject
- All Known Subinterfaces:
ConsoleCommandSource
,Player
public interface CommandSource extends Audience, PermissionSubject
Represents something that can be used to run aCommand
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
sendMessage(@NonNull Identity identity, @NonNull Component message, @NonNull MessageType type)
void
sendMessage(net.kyori.text.Component component)
Deprecated.-
Methods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound
-
Methods inherited from interface com.velocitypowered.api.permission.PermissionSubject
getPermissionValue, hasPermission
-
-
-
-
Method Detail
-
sendMessage
@Deprecated void sendMessage(net.kyori.text.Component component)
Deprecated.Sends the specifiedcomponent
to the invoker.- Parameters:
component
- the text component to send
-
sendMessage
default void sendMessage(@NonNull Identity identity, @NonNull Component message, @NonNull MessageType type)
- Specified by:
sendMessage
in interfaceAudience
-
-