public final class ConsoleManager extends Object
Constructor and Description |
---|
ConsoleManager(GlowServer server)
Creates the instance for the given server.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.command.ConsoleCommandSender |
getSender()
Returns this ConsoleManager's console as a ConsoleCommandSender.
|
void |
startConsole(boolean jline)
Starts the console.
|
void |
startFile(String logfile)
Adds a console-log handler writing to the given file.
|
void |
stop()
Stops all console-log handlers.
|
public ConsoleManager(GlowServer server)
server
- the serverpublic void startConsole(boolean jline)
jline
- whether the console should use JLinepublic void startFile(String logfile)
logfile
- the file pathpublic void stop()
public org.bukkit.command.ConsoleCommandSender getSender()
Copyright © 2021. All rights reserved.