Package wtf.choco.veinminer.platform
Interface PlatformCommandSender
- All Known Subinterfaces:
PlatformPlayer
- All Known Implementing Classes:
BukkitPlatformCommandSender
,BukkitPlatformPlayer
public interface PlatformCommandSender
Represents a platform-independent command-capable object.
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
getName()
Get the name of this sender.boolean
hasPermission
(@NotNull String permission) Check whether or not this sender has the given permission.void
sendMessage
(@NotNull String message) Send a message.
-
Method Details
-
getName
Get the name of this sender.- Returns:
- the name
-
sendMessage
Send a message.- Parameters:
message
- the message to send
-
hasPermission
Check whether or not this sender has the given permission.- Parameters:
permission
- the permission to check- Returns:
- true if the sender has the given permission, false otherwise
-