Class VelocityCommandSender
java.lang.Object
org.geysermc.geyser.platform.velocity.command.VelocityCommandSender
- All Implemented Interfaces:
CommandSender
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityCommandSender(com.velocitypowered.api.command.CommandSource handle) -
Method Summary
Modifier and TypeMethodDescriptionReturns the locale of the command sender.booleanhasPermission(String permission)Checks if the CommandSender has a permissionbooleanname()voidsendMessage(String message)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.command.CommandSender
sendMessage
-
Constructor Details
-
VelocityCommandSender
public VelocityCommandSender(com.velocitypowered.api.command.CommandSource handle)
-
-
Method Details
-
name
- Specified by:
namein interfaceCommandSender
-
sendMessage
- Specified by:
sendMessagein interfaceCommandSender
-
isConsole
public boolean isConsole()- Specified by:
isConsolein interfaceCommandSender- Returns:
- true if the specified sender is from the console.
-
getLocale
Description copied from interface:CommandSenderReturns the locale of the command sender. Defaults to the default locale atGeyserLocale.getDefaultLocale().- Specified by:
getLocalein interfaceCommandSender- Returns:
- the locale of the command sender.
-
hasPermission
Description copied from interface:CommandSenderChecks if the CommandSender has a permission- Specified by:
hasPermissionin interfaceCommandSender- Parameters:
permission- The permission node to check- Returns:
- true if the CommandSender has the requested permission, false if not
-