Interface ViaCommandSender
public interface ViaCommandSender
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the senders name.getUUID()
Get the senders UUID.boolean
hasPermission
(String permission) Check if the sender has a permission.void
sendMessage
(String msg) Send a message to the sender
-
Method Details
-
hasPermission
Check if the sender has a permission.- Parameters:
permission
- Permission string e.g. viaversion.admin- Returns:
- True if the sender has the permission
-
sendMessage
Send a message to the sender- Parameters:
msg
- The message to send
-
getUUID
UUID getUUID()Get the senders UUID.- Returns:
- The senders UUID
-
getName
String getName()Get the senders name.- Returns:
- The senders name
-