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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs a debug message to consolevoid
Logs an error message to consolevoid
Logs an error message and an exception to consoleboolean
hasPermission(String permission)
Checks if the CommandSender has a permissionvoid
Logs an info message to consoleboolean
boolean
isDebug()
If debug is enabled for this loggerprotected boolean
name()
protected void
runCommand(String line)
void
sendMessage(String message)
void
setDebug(boolean debug)
Sets if the logger should print debug messagesvoid
Logs a severe message to consolevoid
Logs a severe message and an exception to consoleprotected void
shutdown()
void
Logs a warning message to consoleMethods inherited from class net.minecrell.terminalconsole.SimpleTerminalConsole
buildReader, processInput, start
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
-
GeyserStandaloneLogger
public GeyserStandaloneLogger()
-
-
Method Details
-
isRunning
protected boolean isRunning()- Specified by:
isRunning
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
runCommand
- Specified by:
runCommand
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
shutdown
protected void shutdown()- Specified by:
shutdown
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
severe
Description copied from interface:GeyserLogger
Logs a severe message to console- Specified by:
severe
in interfaceGeyserLogger
- Parameters:
message
- the message to log
-
severe
Description copied from interface:GeyserLogger
Logs a severe message and an exception to console- Specified by:
severe
in interfaceGeyserLogger
- Parameters:
message
- the message to logerror
- the error to throw
-
error
Description copied from interface:GeyserLogger
Logs an error message to console- Specified by:
error
in interfaceGeyserLogger
- Parameters:
message
- the message to log
-
error
Description copied from interface:GeyserLogger
Logs an error message and an exception to console- Specified by:
error
in interfaceGeyserLogger
- Parameters:
message
- the message to logerror
- the error to throw
-
warning
Description copied from interface:GeyserLogger
Logs a warning message to console- Specified by:
warning
in interfaceGeyserLogger
- Parameters:
message
- the message to log
-
info
Description copied from interface:GeyserLogger
Logs an info message to console- Specified by:
info
in interfaceGeyserLogger
- Parameters:
message
- the message to log
-
debug
Description copied from interface:GeyserLogger
Logs a debug message to console- Specified by:
debug
in interfaceGeyserLogger
- 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 interfaceGeyserLogger
- 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 interfaceGeyserLogger
-
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
-