- All Superinterfaces:
Permissible,ServerOperator
Represents the sender of a command.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the command sender.Returns the server instance of the command sender.booleanisPlayer()Checks if this command sender is a player.voidsendMessage(String message)Sends a message to the command sender.voidsendMessage(TextContainer message)Sends a message to the command sender.Methods inherited from interface org.cloudburstmc.api.permission.Permissible
addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.cloudburstmc.api.permission.ServerOperator
isOp, setOp
-
Method Details
-
sendMessage
Sends a message to the command sender.- Parameters:
message- The message to send
-
sendMessage
Sends a message to the command sender.- Parameters:
message- The message to send.
-
getServer
Server getServer()Returns the server instance of the command sender.- Returns:
- The server instance
-
getName
String getName()Returns the name of the command sender.- Returns:
- The name of the command sender.
-
isPlayer
boolean isPlayer()Checks if this command sender is a player.- Returns:
- true if the sender is a player
-