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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a debug message to consolevoidLogs an error message to consolevoidLogs an error message and an exception to consolebooleanhasPermission(String permission)Checks if the CommandSender has a permissionvoidLogs an info message to consolebooleanbooleanisDebug()If debug is enabled for this loggerprotected booleanname()protected voidrunCommand(String line)voidsendMessage(String message)voidsetDebug(boolean debug)Sets if the logger should print debug messagesvoidLogs a severe message to consolevoidLogs a severe message and an exception to consoleprotected voidshutdown()voidLogs a warning message to consoleMethods inherited from class net.minecrell.terminalconsole.SimpleTerminalConsole
buildReader, processInput, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.command.CommandSender
getLocale, sendMessage
-
Constructor Details
-
GeyserStandaloneLogger
public GeyserStandaloneLogger()
-
-
Method Details
-
isRunning
protected boolean isRunning()- Specified by:
isRunningin classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
runCommand
- Specified by:
runCommandin classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
shutdown
protected void shutdown()- Specified by:
shutdownin classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
severe
Description copied from interface:GeyserLoggerLogs a severe message to console- Specified by:
severein interfaceGeyserLogger- Parameters:
message- the message to log
-
severe
Description copied from interface:GeyserLoggerLogs a severe message and an exception to console- Specified by:
severein interfaceGeyserLogger- Parameters:
message- the message to logerror- the error to throw
-
error
Description copied from interface:GeyserLoggerLogs an error message to console- Specified by:
errorin interfaceGeyserLogger- Parameters:
message- the message to log
-
error
Description copied from interface:GeyserLoggerLogs an error message and an exception to console- Specified by:
errorin interfaceGeyserLogger- Parameters:
message- the message to logerror- the error to throw
-
warning
Description copied from interface:GeyserLoggerLogs a warning message to console- Specified by:
warningin interfaceGeyserLogger- Parameters:
message- the message to log
-
info
Description copied from interface:GeyserLoggerLogs an info message to console- Specified by:
infoin interfaceGeyserLogger- Parameters:
message- the message to log
-
debug
Description copied from interface:GeyserLoggerLogs a debug message to console- Specified by:
debugin interfaceGeyserLogger- Parameters:
message- the message to log
-
setDebug
public void setDebug(boolean debug)Description copied from interface:GeyserLoggerSets if the logger should print debug messages- Specified by:
setDebugin interfaceGeyserLogger- Parameters:
debug- if the logger should print debug messages
-
isDebug
public boolean isDebug()Description copied from interface:GeyserLoggerIf debug is enabled for this logger- Specified by:
isDebugin interfaceGeyserLogger
-
name
- Specified by:
namein interfaceCommandSender
-
sendMessage
- Specified by:
sendMessagein interfaceCommandSender
-
isConsole
public boolean isConsole()- Specified by:
isConsolein interfaceCommandSender- Returns:
- true if the specified sender is from the console.
-
hasPermission
Description copied from interface:CommandSenderChecks if the CommandSender has a permission- Specified by:
hasPermissionin interfaceCommandSender- Parameters:
permission- The permission node to check- Returns:
- true if the CommandSender has the requested permission, false if not
-