Class SpongeCommandSender
java.lang.Object
org.geysermc.geyser.platform.sponge.command.SpongeCommandSender
- All Implemented Interfaces:
CommandSender
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
getLocale, sendMessage
-
Constructor Details
-
SpongeCommandSender
public SpongeCommandSender()
-
-
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.
-
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
-