Class BungeeCommandSender
java.lang.Object
org.geysermc.geyser.platform.bungeecord.command.BungeeCommandSender
- All Implemented Interfaces:
CommandSender
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the locale of the command sender.boolean
hasPermission(String permission)
Checks if the CommandSender has a permissionboolean
name()
void
sendMessage(String message)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.geysermc.geyser.command.CommandSender
sendMessage
-
Constructor Details
-
BungeeCommandSender
public BungeeCommandSender(net.md_5.bungee.api.CommandSender handle)
-
-
Method Details
-
name
- Specified by:
name
in interfaceCommandSender
-
sendMessage
- Specified by:
sendMessage
in interfaceCommandSender
-
isConsole
public boolean isConsole()- Specified by:
isConsole
in interfaceCommandSender
- Returns:
- true if the specified sender is from the console.
-
getLocale
Description copied from interface:CommandSender
Returns the locale of the command sender. Defaults to the default locale atGeyserLocale.getDefaultLocale()
.- Specified by:
getLocale
in interfaceCommandSender
- Returns:
- the locale of the command sender.
-
hasPermission
Description copied from interface:CommandSender
Checks if the CommandSender has a permission- Specified by:
hasPermission
in interfaceCommandSender
- Parameters:
permission
- The permission node to check- Returns:
- true if the CommandSender has the requested permission, false if not
-