Package be.seeseemelk.mockbukkit.command
Class ConsoleCommandSenderMock
java.lang.Object
be.seeseemelk.mockbukkit.command.ConsoleCommandSenderMock
- All Implemented Interfaces:
MessageTarget,net.kyori.adventure.audience.Audience,net.kyori.adventure.pointer.Pointered,CommandSender,ConsoleCommandSender,Conversable,Permissible,ServerOperator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.command.CommandSender
CommandSender.Spigot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabandonConversation(@NotNull Conversation conversation) voidabandonConversation(@NotNull Conversation conversation, @NotNull ConversationAbandonedEvent details) voidacceptConversationInput(@NotNull String input) @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin) addAttachment(@NotNull Plugin plugin, int ticks) @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value) addAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value, int ticks) booleanbeginConversation(@NotNull Conversation conversation) @NotNull Set<PermissionAttachmentInfo>@NotNull StringgetName()@NotNull ServerbooleanhasPermission(@NotNull String name) booleanhasPermission(@NotNull Permission perm) booleanbooleanisOp()booleanisPermissionSet(@NotNull String name) booleanisPermissionSet(@NotNull Permission perm) @NotNull net.kyori.adventure.text.Componentname()@Nullable net.kyori.adventure.text.ComponentReturns the next message that was sent to the target.voidvoidremoveAttachment(@NotNull PermissionAttachment attachment) voidsendMessage(@NotNull String message) voidsendMessage(@Nullable UUID sender, @NotNull String message) voidsendMessage(String @NotNull ... messages) voidsendMessage(UUID sender, String @NotNull ... messages) voidsendRawMessage(@NotNull String message) voidsendRawMessage(@Nullable UUID sender, @NotNull String message) voidsetOp(boolean value) @NotNull CommandSender.Spigotspigot()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessageMethods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaid, assertSaid, nextMessageMethods inherited from interface org.bukkit.permissions.Permissible
permissionValue, permissionValueMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
-
Constructor Details
-
ConsoleCommandSenderMock
public ConsoleCommandSenderMock()
-
-
Method Details
-
sendMessage
- Specified by:
sendMessagein interfaceCommandSender
-
sendMessage
- Specified by:
sendMessagein interfaceCommandSender
-
sendMessage
- Specified by:
sendMessagein interfaceCommandSender
-
sendMessage
- Specified by:
sendMessagein interfaceCommandSender
-
nextComponentMessage
@Nullable public @Nullable net.kyori.adventure.text.Component nextComponentMessage()Description copied from interface:MessageTargetReturns the next message that was sent to the target.- Specified by:
nextComponentMessagein interfaceMessageTarget- Returns:
- The next message sent to the target.
-
isPermissionSet
- Specified by:
isPermissionSetin interfacePermissible
-
isPermissionSet
- Specified by:
isPermissionSetin interfacePermissible
-
hasPermission
- Specified by:
hasPermissionin interfacePermissible
-
hasPermission
- Specified by:
hasPermissionin interfacePermissible
-
addAttachment
@NotNull public @NotNull PermissionAttachment addAttachment(@NotNull @NotNull Plugin plugin, @NotNull @NotNull String name, boolean value) - Specified by:
addAttachmentin interfacePermissible
-
addAttachment
- Specified by:
addAttachmentin interfacePermissible
-
addAttachment
public PermissionAttachment addAttachment(@NotNull @NotNull Plugin plugin, @NotNull @NotNull String name, boolean value, int ticks) - Specified by:
addAttachmentin interfacePermissible
-
addAttachment
- Specified by:
addAttachmentin interfacePermissible
-
removeAttachment
- Specified by:
removeAttachmentin interfacePermissible
-
recalculatePermissions
public void recalculatePermissions()- Specified by:
recalculatePermissionsin interfacePermissible
-
getEffectivePermissions
- Specified by:
getEffectivePermissionsin interfacePermissible
-
isOp
public boolean isOp()- Specified by:
isOpin interfaceServerOperator
-
setOp
public void setOp(boolean value) - Specified by:
setOpin interfaceServerOperator
-
getServer
- Specified by:
getServerin interfaceCommandSender
-
getName
- Specified by:
getNamein interfaceCommandSender
-
isConversing
public boolean isConversing()- Specified by:
isConversingin interfaceConversable
-
acceptConversationInput
- Specified by:
acceptConversationInputin interfaceConversable
-
beginConversation
- Specified by:
beginConversationin interfaceConversable
-
abandonConversation
- Specified by:
abandonConversationin interfaceConversable
-
abandonConversation
public void abandonConversation(@NotNull @NotNull Conversation conversation, @NotNull @NotNull ConversationAbandonedEvent details) - Specified by:
abandonConversationin interfaceConversable
-
sendRawMessage
- Specified by:
sendRawMessagein interfaceConversable
-
sendRawMessage
- Specified by:
sendRawMessagein interfaceConversable
-
spigot
- Specified by:
spigotin interfaceCommandSender
-
name
@NotNull public @NotNull net.kyori.adventure.text.Component name()- Specified by:
namein interfaceCommandSender
-