Class ConsoleCommandSender

  • All Implemented Interfaces:
    ICommandSender

    public final class ConsoleCommandSender
    extends java.lang.Object
    implements ICommandSender
    The ConsoleCommandSender represents the console of the application. The console has all needed permissions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      The console name is the first codename from CloudNet 3.0: "Tsunami"
      boolean hasPermission​(java.lang.String permission)
      The console as always the permission for by every request
      void sendMessage​(java.lang.String message)
      Sends a message to the specific sender implementation
      void sendMessage​(java.lang.String... messages)
      Send the messages to the specific sender implementation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONSOLE_LEVEL

        private static final LogLevel CONSOLE_LEVEL
      • logger

        private final ILogger logger
    • Constructor Detail

      • ConsoleCommandSender

        public ConsoleCommandSender​(ILogger logger)
    • Method Detail

      • getName

        public java.lang.String getName()
        The console name is the first codename from CloudNet 3.0: "Tsunami"
        Specified by:
        getName in interface ICommandSender
      • sendMessage

        public void sendMessage​(java.lang.String message)
        Description copied from interface: ICommandSender
        Sends a message to the specific sender implementation
        Specified by:
        sendMessage in interface ICommandSender
        Parameters:
        message - that should send
      • sendMessage

        public void sendMessage​(java.lang.String... messages)
        Description copied from interface: ICommandSender
        Send the messages to the specific sender implementation
        Specified by:
        sendMessage in interface ICommandSender
        Parameters:
        messages - that should send
      • hasPermission

        public boolean hasPermission​(java.lang.String permission)
        The console as always the permission for by every request
        Specified by:
        hasPermission in interface ICommandSender
        Parameters:
        permission - the permission, that should that
        Returns:
        true if the command sender is authorized that it has the permission