Class SpongeCommandSender

java.lang.Object
org.geysermc.geyser.platform.sponge.command.SpongeCommandSender
All Implemented Interfaces:
CommandSender

public class SpongeCommandSender extends Object implements CommandSender
  • Constructor Details

    • SpongeCommandSender

      public SpongeCommandSender()
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface CommandSender
    • sendMessage

      public void sendMessage(String message)
      Specified by:
      sendMessage in interface CommandSender
    • isConsole

      public boolean isConsole()
      Specified by:
      isConsole in interface CommandSender
      Returns:
      true if the specified sender is from the console.
    • hasPermission

      public boolean hasPermission(String permission)
      Description copied from interface: CommandSender
      Checks if the CommandSender has a permission
      Specified by:
      hasPermission in interface CommandSender
      Parameters:
      permission - The permission node to check
      Returns:
      true if the CommandSender has the requested permission, false if not