Class GeyserStandaloneLogger

java.lang.Object
net.minecrell.terminalconsole.SimpleTerminalConsole
org.geysermc.geyser.platform.standalone.GeyserStandaloneLogger
All Implemented Interfaces:
CommandSender, GeyserLogger

public class GeyserStandaloneLogger extends net.minecrell.terminalconsole.SimpleTerminalConsole implements GeyserLogger, CommandSender
  • Constructor Details

    • GeyserStandaloneLogger

      public GeyserStandaloneLogger()
  • Method Details

    • isRunning

      protected boolean isRunning()
      Specified by:
      isRunning in class net.minecrell.terminalconsole.SimpleTerminalConsole
    • runCommand

      protected void runCommand(String line)
      Specified by:
      runCommand in class net.minecrell.terminalconsole.SimpleTerminalConsole
    • shutdown

      protected void shutdown()
      Specified by:
      shutdown in class net.minecrell.terminalconsole.SimpleTerminalConsole
    • severe

      public void severe(String message)
      Description copied from interface: GeyserLogger
      Logs a severe message to console
      Specified by:
      severe in interface GeyserLogger
      Parameters:
      message - the message to log
    • severe

      public void severe(String message, Throwable error)
      Description copied from interface: GeyserLogger
      Logs a severe message and an exception to console
      Specified by:
      severe in interface GeyserLogger
      Parameters:
      message - the message to log
      error - the error to throw
    • error

      public void error(String message)
      Description copied from interface: GeyserLogger
      Logs an error message to console
      Specified by:
      error in interface GeyserLogger
      Parameters:
      message - the message to log
    • error

      public void error(String message, Throwable error)
      Description copied from interface: GeyserLogger
      Logs an error message and an exception to console
      Specified by:
      error in interface GeyserLogger
      Parameters:
      message - the message to log
      error - the error to throw
    • warning

      public void warning(String message)
      Description copied from interface: GeyserLogger
      Logs a warning message to console
      Specified by:
      warning in interface GeyserLogger
      Parameters:
      message - the message to log
    • info

      public void info(String message)
      Description copied from interface: GeyserLogger
      Logs an info message to console
      Specified by:
      info in interface GeyserLogger
      Parameters:
      message - the message to log
    • debug

      public void debug(String message)
      Description copied from interface: GeyserLogger
      Logs a debug message to console
      Specified by:
      debug in interface GeyserLogger
      Parameters:
      message - the message to log
    • setDebug

      public void setDebug(boolean debug)
      Description copied from interface: GeyserLogger
      Sets if the logger should print debug messages
      Specified by:
      setDebug in interface GeyserLogger
      Parameters:
      debug - if the logger should print debug messages
    • isDebug

      public boolean isDebug()
      Description copied from interface: GeyserLogger
      If debug is enabled for this logger
      Specified by:
      isDebug in interface GeyserLogger
    • 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